Module: Mesa
Branch: master
Commit: e8eec9385497053a4172deeff9c0ff2726a10f3b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8eec9385497053a4172deeff9c0ff2726a10f3b

Author: Vinson Lee <[email protected]>
Date:   Tue Nov 17 14:22:35 2009 -0800

progs/slang: Fix potential null pointer dereference in cltest.c.

---

 progs/slang/cltest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/slang/cltest.c b/progs/slang/cltest.c
index 2753f59..dfff6cb 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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to