Fix various errors uncovered by static analysis

Reported-by: Carlos Montiers <cmontiers@gmail.com>
This commit is contained in:
Thomas Preud'homme
2014-03-08 18:36:02 +08:00
parent ba286136bf
commit fdb3b10d06
4 changed files with 2 additions and 5 deletions

View File

@ -162,7 +162,6 @@ ST_FUNC Sym *sym_push2(Sym **ps, int v, int t, long c)
tcc_error("incompatible types for redefinition of '%s'",
get_tok_str(v, NULL));
}
s = *ps;
s = sym_malloc();
s->asm_label = NULL;
s->v = v;