summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 22:10:24 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 22:10:24 +0000
commitfc6946e96f2ac45a2713a045c3362573efd27263 (patch)
tree1a0b888059314a8c300d5f0c13563f9ae7c70d9e /src
parent87cb9f4e90941a1db5d9941cf48ae80d0c89a71e (diff)
downloadxine-lib-fc6946e96f2ac45a2713a045c3362573efd27263.tar.gz
xine-lib-fc6946e96f2ac45a2713a045c3362573efd27263.tar.bz2
Check for validity of the pointer before using strlen() on it.
Found by Coverity Scan CID 242. Fixed upstream too. CVS patchset: 8308 CVS date: 2006/09/26 22:10:24
Diffstat (limited to 'src')
-rw-r--r--src/input/vcd/libcdio/MSWindows/win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/vcd/libcdio/MSWindows/win32.c b/src/input/vcd/libcdio/MSWindows/win32.c
index 9635161fb..1c9d9b93d 100644
--- a/src/input/vcd/libcdio/MSWindows/win32.c
+++ b/src/input/vcd/libcdio/MSWindows/win32.c
@@ -1,5 +1,5 @@
/*
- $Id: win32.c,v 1.2 2005/01/01 02:43:58 rockyb Exp $
+ $Id: win32.c,v 1.3 2006/09/26 22:10:24 dgp85 Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -26,7 +26,7 @@
# include "config.h"
#endif
-static const char _rcsid[] = "$Id: win32.c,v 1.2 2005/01/01 02:43:58 rockyb Exp $";
+static const char _rcsid[] = "$Id: win32.c,v 1.3 2006/09/26 22:10:24 dgp85 Exp $";
#include <cdio/cdio.h>
#include <cdio/sector.h>
@@ -670,8 +670,8 @@ cdio_is_device_win32(const char *source_name)
{
unsigned int len;
- len = strlen(source_name);
if (NULL == source_name) return false;
+ len = strlen(source_name);
#ifdef HAVE_WIN32_CDROM
if ((len == 2) && isalpha(source_name[0])