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 2753f59..dfff6cb 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;