aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-03-08 18:36:02 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-03-08 18:38:49 +0800
commitfdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1 (patch)
tree5090d475b14656a25a3c616e840d43d9173e6dd8 /tccgen.c
parentba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1 (diff)
downloadtinycc-fdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1.tar.gz
tinycc-fdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1.tar.bz2
Fix various errors uncovered by static analysis
Reported-by: Carlos Montiers <cmontiers@gmail.com>
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tccgen.c b/tccgen.c
index 2f5b366..d8e4614 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -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;