]> granicus.if.org Git - yasm/commitdiff
Defensively look for NULL istk.
authorPeter Johnson <peter@tortall.net>
Fri, 25 Apr 2008 05:07:57 +0000 (05:07 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 25 Apr 2008 05:07:57 +0000 (05:07 -0000)
svn path=/trunk/yasm/; revision=2075

modules/preprocs/nasm/nasm-pp.c

index 604bb2bc24d8e077fc27b6db6a43358889b0fb80..2bb94b04f4405a0fdc88fbfb750e753230a51a36 100644 (file)
@@ -4237,6 +4237,8 @@ pp_getline(void)
          * buffer or from the input file.
          */
         tline = NULL;
+        if (!istk)
+            return NULL;
         while (istk->expansion && istk->expansion->finishes)
         {
             Line *l = istk->expansion;