summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 18:55:02 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 18:55:02 +0900
commit2ee14e599757aa6914491149945b63f5c80e602a (patch)
treea56356ea527deb9013fa03da3cbb379916d806c3 /src/bin/embryo
parente263af08c9269eef66141fbca0e8a1a0cd6b8d2a (diff)
embryo_cc - make assert clearer
this fixes coverity warning CID 1039730
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index ed6e4173be..b63354f821 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -2700,8 +2700,9 @@ addvariable(char *name, cell addr, int ident, int vclass, int tag,
2700 symbol *sym, *parent, *top; 2700 symbol *sym, *parent, *top;
2701 int level; 2701 int level;
2702 2702
2703 sym = findglb(name);
2703 /* global variables may only be defined once */ 2704 /* global variables may only be defined once */
2704 assert(vclass != sGLOBAL || (sym = findglb(name)) == NULL 2705 assert(vclass != sGLOBAL || sym == NULL
2705 || (sym->usage & uDEFINE) == 0); 2706 || (sym->usage & uDEFINE) == 0);
2706 2707
2707 if (ident == iARRAY || ident == iREFARRAY) 2708 if (ident == iARRAY || ident == iREFARRAY)