diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2014-03-25 13:57:57 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2014-03-25 13:57:57 +0000 |
| commit | 911ae42296780b81f2afd7795c2eabce745649c8 (patch) | |
| tree | cc30d6ba4bcb0f799fc238e6450878242bf46592 /src/runtime/c/pgf/parser.c | |
| parent | 51a9ef72c7e32f06d2413a5aea5751df2780063b (diff) | |
small fixes in the C runtime
Diffstat (limited to 'src/runtime/c/pgf/parser.c')
| -rw-r--r-- | src/runtime/c/pgf/parser.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index 500db0fba..d8e150f7e 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -706,7 +706,7 @@ static PgfItem* pgf_new_item(PgfParsing* ps, PgfItemConts* conts, PgfProduction prod) { PgfItem* item; - if (ps == NULL || ps->free_item == NULL) + if (ps->free_item == NULL) item = gu_new(PgfItem, ps->pool); else { item = ps->free_item; @@ -769,10 +769,8 @@ pgf_new_item(PgfParsing* ps, PgfItemConts* conts, PgfProduction prod) pgf_item_set_curr_symbol(item, ps->pool); #ifdef PGF_COUNTS_DEBUG - if (ps != NULL) { - ps->item_full_count++; - ps->item_real_count++; - } + ps->item_full_count++; + ps->item_real_count++; #endif return item; |
