Fix read of uninitialized variable

This fixes a copy & paste mistake in commit
53221dd2ccf29fc5e357ffb67363ca7461d24193.
This commit is contained in:
Zeex 2014-01-12 19:34:02 +07:00
parent a9e1af66b1
commit 5b0dec0b3d

View File

@ -5754,7 +5754,7 @@ static void doreturn(void)
} else {
/* this return statement contains no expression */
ldconst(0,sPRI);
if ((rettype & uRETVALUE)!=0 && (sym->flags & flagNAKED)==0) {
if ((rettype & uRETVALUE)!=0 && (curfunc->flags & flagNAKED)==0) {
char symname[2*sNAMEMAX+16]; /* allow space for user defined operators */
assert(curfunc!=NULL);
funcdisplayname(symname,curfunc->name);