--- capa/capa51/pProj/capaFormula.y 2000/10/23 16:22:57 1.9 +++ capa/capa51/pProj/capaFormula.y 2001/06/01 18:11:20 1.11 @@ -201,7 +201,10 @@ f_symbol_pow(ap,bp) Symbol *ap; Symbol * double a, b; int error = 0; - cp = NULL; + /*Even if we can't do it we need to return something*/ + cp = (Symbol *)capa_malloc(sizeof(Symbol),1); + cp->s_type = R_CONSTANT; + cp->s_real = 0.0; switch(ap->s_type) { case I_VAR: a = (double)(ap->s_int); break; @@ -235,7 +238,8 @@ f_symbol_pow(ap,bp) Symbol *ap; Symbol * cp = (Symbol *)capa_malloc(sizeof(Symbol),1); cp->s_type = R_CONSTANT; cp->s_real = pow(a,b); - + } else { + FormulaParseOK=0; } return (cp); }