Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cron: coverity chack for NULL string in cron_parse_val()
  • Loading branch information
perexg committed Oct 3, 2014
1 parent d4611d1 commit 0ff555b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cron.c
Expand Up @@ -36,6 +36,8 @@ static int
cron_parse_val ( const char *str, const char **key, int *v )
{
int i = 0;
if (!str)
return 0;
if (key) {
while (key[i]) {
if (!strncasecmp(str, key[i], strlen(key[i]))) {
Expand Down

0 comments on commit 0ff555b

Please sign in to comment.