Mercurial > hg > index.cgi
diff lwasm/pass1.c @ 147:9cf1796259b2
Fixed segfault in fcb,fdb,fqb with empty operands
author | lost@l-w.ca |
---|---|
date | Thu, 25 Aug 2011 22:29:58 -0600 |
parents | 697bc543368c |
children | 324f28905144 |
line wrap: on
line diff
--- a/lwasm/pass1.c Wed Aug 24 21:16:17 2011 -0600 +++ b/lwasm/pass1.c Thu Aug 25 22:29:58 2011 -0600 @@ -339,7 +339,7 @@ cl -> dlen = cl -> len; } - if (*p1 && !isspace(*p1)) + if (*p1 && !isspace(*p1) && !(cl -> err)) { // flag bad operand error lwasm_register_error(as, cl, "Bad operand (%s)", p1);