]> granicus.if.org Git - yasm/commitdiff
Check correct variable for badly parsed expression.
authorPeter Johnson <peter@tortall.net>
Fri, 2 Nov 2007 03:14:47 +0000 (03:14 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 2 Nov 2007 03:14:47 +0000 (03:14 -0000)
svn path=/trunk/yasm/; revision=2006

modules/parsers/nasm/nasm-parse.c

index 641de04e9e9dc2e737608b3a8f7866631131a74e..c615ecea78b40b414e23474b98079e7802313e6d 100644 (file)
@@ -577,7 +577,7 @@ dv_done:
             if (is_eol())
                 goto incbin_done;
             maxlen = parse_expr(parser_nasm, DV_EXPR);
-            if (!start) {
+            if (!maxlen) {
                 yasm_error_set(YASM_ERROR_SYNTAX,
                     N_("expression expected for INCBIN maximum length"));
                 return NULL;