Commit 3f12ea32 authored by conrad's avatar conrad

check for NULL return value of val in cgi.c

for ticket:438, reported by Coverity


git-svn-id: http://svn.annodex.net/liboggz/trunk@3789 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent d4a4d56e
......@@ -25,7 +25,7 @@ set_param (OCState * state, char * key, char * val)
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment