Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
146:f5b8559a5f35 | 147:9cf1796259b2 |
---|---|
337 cl -> len = cl -> dlen; | 337 cl -> len = cl -> dlen; |
338 else | 338 else |
339 cl -> dlen = cl -> len; | 339 cl -> dlen = cl -> len; |
340 } | 340 } |
341 | 341 |
342 if (*p1 && !isspace(*p1)) | 342 if (*p1 && !isspace(*p1) && !(cl -> err)) |
343 { | 343 { |
344 // flag bad operand error | 344 // flag bad operand error |
345 lwasm_register_error(as, cl, "Bad operand (%s)", p1); | 345 lwasm_register_error(as, cl, "Bad operand (%s)", p1); |
346 } | 346 } |
347 | 347 |