summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/command_parse.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y
index bbdf11c6e8..690832357a 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -478,8 +478,11 @@ cmp_node (struct graph_node *first, struct graph_node *second)
switch (first->type) {
case WORD_GN:
case VARIABLE_GN:
- if (first->text && second->text && strcmp (first->text, second->text))
- return 0;
+ if (first->text && second->text)
+ {
+ if (strcmp (first->text, second->text))
+ return 0;
+ }
else if (first->text != second->text) return 0;
break;
case RANGE_GN: