embryo_cc - make assert clearer

this fixes coverity warning CID 1039730
This commit is contained in:
Carsten Haitzler 2014-08-14 18:55:02 +09:00
parent e263af08c9
commit 2ee14e5997
1 changed files with 2 additions and 1 deletions

View File

@ -2700,8 +2700,9 @@ addvariable(char *name, cell addr, int ident, int vclass, int tag,
symbol *sym, *parent, *top;
int level;
sym = findglb(name);
/* global variables may only be defined once */
assert(vclass != sGLOBAL || (sym = findglb(name)) == NULL
assert(vclass != sGLOBAL || sym == NULL
|| (sym->usage & uDEFINE) == 0);
if (ident == iARRAY || ident == iREFARRAY)