Skip to content

Commit

Permalink
i think Ive finally got it snookered.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredly committed Jul 24, 2010
1 parent f4f03e5 commit 99df426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion codetalker/c/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ struct cParseNode* parse_rule(unsigned int rule, struct Grammar* grammar, struct
if (tmp != NULL) {
LOG("CHild success! %d\n", i);
// log('child success!', i)
node->child = tmp;
if (tmp != UNINITIALIZED) {
node->child = tmp;
}
indent-=IND;
return node;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/parse/segfixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def at(rule):

parse_rule = testing.parse_rule(__name__, g)

parse_rule(at, (
parse_rule(many, (
'{@one "hi";}',
'{@two "ho" ;}',
'{@three lots of stuff;}',
Expand Down

0 comments on commit 99df426

Please sign in to comment.