summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'read.c')
-rw-r--r--read.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/read.c b/read.c
index 6ecc2ca..aa13a21 100644
--- a/read.c
+++ b/read.c
@@ -680,9 +680,14 @@ eval (struct ebuffer *ebuf, int set_default)
collapse_continuations (collapsed);
remove_comments (collapsed);
+ /* Get rid if starting space (including formfeed, vtab, etc.) */
+ p = collapsed;
+ while (isspace ((unsigned char)*p))
+ ++p;
+
/* See if this is a variable assignment. We need to do this early, to
allow variables with names like 'ifdef', 'export', 'private', etc. */
- p = parse_var_assignment(collapsed, &vmod);
+ p = parse_var_assignment(p, &vmod);
if (vmod.assign_v)
{
struct variable *v;