Fix null pointer dereference if we redeclare an unprototyped function. Patch by
WenHan Gu!