[xiph-commits] r3789 - liboggz/trunk/src/tools/oggz-chop

conrad at svn.annodex.net conrad at svn.annodex.net
Mon Nov 17 13:34:49 PST 2008


Author: conrad
Date: 2008-11-17 13:34:48 -0800 (Mon, 17 Nov 2008)
New Revision: 3789

Modified:
   liboggz/trunk/src/tools/oggz-chop/cgi.c
Log:
check for NULL return value of val in cgi.c
for ticket:438, reported by Coverity


Modified: liboggz/trunk/src/tools/oggz-chop/cgi.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/cgi.c	2008-11-17 19:59:19 UTC (rev 3788)
+++ liboggz/trunk/src/tools/oggz-chop/cgi.c	2008-11-17 21:34:48 UTC (rev 3789)
@@ -25,7 +25,7 @@
   if (!strncmp ("end", key, 6)) state->end = parse_timespec (val);
 
   if (!strncmp ("t", key, 2)) {
-    if ((sep = strchr (val, '/')) != NULL) {
+    if (val && (sep = strchr (val, '/')) != NULL) {
       *sep++ = '\0';
       state->end = parse_timespec (sep);
     }



More information about the commits mailing list