Permalink
Browse files

q bugfix

  • Loading branch information...
1 parent eadbc1a commit 132136291f6170d79ea3bf9c2bbf3ccdebfebe07 @luk0104 luk0104 committed Aug 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plis.c
View
2 plis.c
@@ -196,7 +196,7 @@ int main(void)
if (strlen(code) == 0) {
continue;
}
- if (!strncmp (code, "q", 1))
+ if (strlen(code) == 1 && !strncmp (code, "q", 1))
break;
add_history(code);
Node *ast = plis_parse(code);

0 comments on commit 1321362

Please sign in to comment.