summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/c/pgf/parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c
index d308943dc..e99c4b400 100644
--- a/src/runtime/c/pgf/parser.c
+++ b/src/runtime/c/pgf/parser.c
@@ -1026,8 +1026,11 @@ pgf_symbols_cmp(GuString* psent, PgfSymbols* syms, bool case_sensitive)
PgfSymbol sym = gu_seq_get(syms, PgfSymbol, i);
if (i > 0) {
- if (!skip_space(psent))
+ if (!skip_space(psent)) {
+ if (**psent == 0)
+ return -1;
return 1;
+ }
while (**psent != 0) {
if (!skip_space(psent))