[MPlayer-cvslog] r22896 - trunk/vidix/drivers.c

ben subversion at mplayerhq.hu
Sun Apr 1 18:22:15 CEST 2007


Author: ben
Date: Sun Apr  1 18:22:14 2007
New Revision: 22896

Modified:
   trunk/vidix/drivers.c

Log:
segfaults if name is NULL

Modified: trunk/vidix/drivers.c
==============================================================================
--- trunk/vidix/drivers.c	(original)
+++ trunk/vidix/drivers.c	Sun Apr  1 18:22:14 2007
@@ -98,7 +98,7 @@ int vidix_find_driver (VDXContext *ctx, 
 {
   VDXDriver *drv;
 
-  if (!strcmp (name, "help"))
+  if (name && !strcmp (name, "help"))
   {
     vidix_list_drivers ();
     ctx->drv = NULL;



More information about the MPlayer-cvslog mailing list