projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EXAMINE: Don't crash when unrenderable graphs are requested.
[pspp]
/
src
/
language
/
control
/
repeat.c
diff --git
a/src/language/control/repeat.c
b/src/language/control/repeat.c
index 316ac8fc06db6f5bd85080b2402c7b13da11e4e5..c73d02827149290d9af9dd05dbf5992000e2600b 100644
(file)
--- a/
src/language/control/repeat.c
+++ b/
src/language/control/repeat.c
@@
-210,7
+210,7
@@
do_parse_commands (struct substring s, enum segmenter_mode mode,
enum segment_type type;
int n;
enum segment_type type;
int n;
- n = segmenter_push (&segmenter, s.string, s.length, &type);
+ n = segmenter_push (&segmenter, s.string, s.length,
true,
&type);
assert (n >= 0);
if (type == SEG_DO_REPEAT_COMMAND)
assert (n >= 0);
if (type == SEG_DO_REPEAT_COMMAND)
@@
-220,7
+220,7
@@
do_parse_commands (struct substring s, enum segmenter_mode mode,
int k;
k = segmenter_push (&segmenter, s.string + n, s.length - n,
int k;
k = segmenter_push (&segmenter, s.string + n, s.length - n,
- &type);
+
true,
&type);
if (type != SEG_NEWLINE && type != SEG_DO_REPEAT_COMMAND)
break;
if (type != SEG_NEWLINE && type != SEG_DO_REPEAT_COMMAND)
break;
@@
-275,9
+275,6
@@
parse_commands (struct lexer *lexer, struct hmap *dummies)
ds_put_byte (&input, '\n');
lex_get (lexer);
}
ds_put_byte (&input, '\n');
lex_get (lexer);
}
- if (ds_is_empty (&input))
- ds_put_byte (&input, '\n');
- ds_put_byte (&input, '\0');
n_values = count_values (dummies);
outputs = xmalloc (n_values * sizeof *outputs);
n_values = count_values (dummies);
outputs = xmalloc (n_values * sizeof *outputs);