From: Vinson Lee Date: Tue, 17 Nov 2009 22:22:35 +0000 (-0800) Subject: progs/slang: Fix potential null pointer dereference in cltest.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8eec9385497053a4172deeff9c0ff2726a10f3b;p=mesa.git progs/slang: Fix potential null pointer dereference in cltest.c. --- diff --git a/progs/slang/cltest.c b/progs/slang/cltest.c index 2753f59f85b..dfff6cb226a 100644 --- a/progs/slang/cltest.c +++ b/progs/slang/cltest.c @@ -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;