progs/slang: Fix potential null pointer dereference in cltest.c.
authorVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 22:22:35 +0000 (14:22 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 22:22:35 +0000 (14:22 -0800)
progs/slang/cltest.c

index 2753f59f85b5477a14882b071946db7e18bc8be7..dfff6cb226a1b8eb7494cdef5360cd6ebd3b3198 100644 (file)
@@ -237,7 +237,7 @@ void RenderScene (void)
       if (p != NULL)
          p++;
    }
-   if (*p != '\0')
+   if (p && *p != '\0')
       printf ("*** %s\n", "I/O error");
 
    nextprogram = program->next;