changeset 22878:e0749444591f

segfaults if name is NULL
author ben
date Sun, 01 Apr 2007 16:22:14 +0000
parents 9676cce0987a
children 910cdc3f2afb
files vidix/drivers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers.c	Sun Apr 01 16:20:06 2007 +0000
+++ b/vidix/drivers.c	Sun Apr 01 16:22:14 2007 +0000
@@ -98,7 +98,7 @@
 {
   VDXDriver *drv;
 
-  if (!strcmp (name, "help"))
+  if (name && !strcmp (name, "help"))
   {
     vidix_list_drivers ();
     ctx->drv = NULL;