forked from enlightenment/efl
embryo_cc - make assert clearer
this fixes coverity warning CID 1039730
This commit is contained in:
parent
e263af08c9
commit
2ee14e5997
|
@ -2700,8 +2700,9 @@ addvariable(char *name, cell addr, int ident, int vclass, int tag,
|
||||||
symbol *sym, *parent, *top;
|
symbol *sym, *parent, *top;
|
||||||
int level;
|
int level;
|
||||||
|
|
||||||
|
sym = findglb(name);
|
||||||
/* global variables may only be defined once */
|
/* global variables may only be defined once */
|
||||||
assert(vclass != sGLOBAL || (sym = findglb(name)) == NULL
|
assert(vclass != sGLOBAL || sym == NULL
|
||||||
|| (sym->usage & uDEFINE) == 0);
|
|| (sym->usage & uDEFINE) == 0);
|
||||||
|
|
||||||
if (ident == iARRAY || ident == iREFARRAY)
|
if (ident == iARRAY || ident == iREFARRAY)
|
||||||
|
|
Loading…
Reference in New Issue