Make get_tok_str support NULL as second param.
commit9a6ee577f6165dccfde424732bfc6f16f1e2811b
authorThomas Preud'homme <robotux@celest.fr>
Thu, 27 Mar 2014 14:59:05 +0000 (27 22:59 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Sat, 29 Mar 2014 06:46:26 +0000 (29 14:46 +0800)
tree01cc2ef73b2fb706f6b550106bf3f61388ff1575
parent5c233f2cf37a7bbf00b12df606f876c7275ef98f
Make get_tok_str support NULL as second param.

As was pointed out on tinycc-devel, many uses of get_tok_str gives as
second parameter the value NULL. However, that pointer was
unconditionally dereferenced in get_tok_ptr. This commit explicitely add
support for thas case.
tccpp.c