don't ignore return value of _slang_codegen_global_variable()

This commit is contained in:
Brian 2007-05-11 15:34:29 -06:00
parent eab6e16522
commit 749e093e33

View file

@ -1618,7 +1618,8 @@ parse_init_declarator(slang_parse_ctx * C, slang_output_ctx * O,
A.program = O->program;
A.vartable = O->vartable;
A.curFuncEndLabel = NULL;
_slang_codegen_global_variable(&A, var, C->type);
if (!_slang_codegen_global_variable(&A, var, C->type))
return 0;
}
/* allocate global address space for a variable with a known size */