summaryrefslogtreecommitdiffstats
path: root/vidix
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-01 16:22:14 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-01 16:22:14 +0000
commit50a3640ad827b58d0fc8af308a882e8707aab8e5 (patch)
tree2606aa85533c8517061e90de8dc379e9c2854a5b /vidix
parent8d92a9a47563086cb02249a068f0a139f7b6d457 (diff)
downloadmpv-50a3640ad827b58d0fc8af308a882e8707aab8e5.tar.bz2
mpv-50a3640ad827b58d0fc8af308a882e8707aab8e5.tar.xz
segfaults if name is NULL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22896 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r--vidix/drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vidix/drivers.c b/vidix/drivers.c
index b63228b709..7ec1fe7498 100644
--- a/vidix/drivers.c
+++ b/vidix/drivers.c
@@ -98,7 +98,7 @@ int vidix_find_driver (VDXContext *ctx, const char *name,
{
VDXDriver *drv;
- if (!strcmp (name, "help"))
+ if (name && !strcmp (name, "help"))
{
vidix_list_drivers ();
ctx->drv = NULL;