aboutsummaryrefslogtreecommitdiffstats
path: root/src/stlfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stlfile.c')
-rw-r--r--src/stlfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stlfile.c b/src/stlfile.c
index 17b97fc..c55a2a0 100644
--- a/src/stlfile.c
+++ b/src/stlfile.c
@@ -83,7 +83,7 @@ consume_arg(char **start, char **end)
if (!*start) return NULL;
for (c = *start; *c && !isws(*c); c++);
tmp = *start;
- *start = c + 1;
+ *start = c + (*c ? 1 : 0);
*end = c;
return tmp;
}