rui314 / 8cc

A Small C Compiler
MIT License
6.13k stars 740 forks source link

Fix a null dereference. #25

Closed andrewchambers closed 9 years ago

andrewchambers commented 9 years ago

Fixed a null pointer deference if a call argument is a keyword.

example:

extern int foo(int);
int main() {  return foo(int); }
andrewchambers commented 9 years ago

Fixed, I would probably want to change this to refer to the actual error, rather than after it, but for now this fixes a segfault, so it is better than nothing.