Mercurial > hg-old > index.cgi
changeset 200:3f9d299d2477
Fixed crash on unrecognized pragma
author | lost |
---|---|
date | Sun, 22 Mar 2009 19:26:26 +0000 |
parents | 188037f0397c |
children | 7824f94c5786 |
files | lwasm/pragma.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/pragma.c Sun Mar 22 18:32:13 2009 +0000 +++ b/lwasm/pragma.c Sun Mar 22 19:26:26 2009 +0000 @@ -61,7 +61,7 @@ char pragma[128]; int c = 0; - while (isspace(**optr)) + while (**optr && isspace(**optr)) (*optr)++; pragmaagain: @@ -128,7 +128,7 @@ } } } - if (**optr == ',') + if (*optr && **optr == ',') { (*optr)++; goto pragmaagain;