cron: coverity chack for NULL string in cron_parse_val()
This commit is contained in:
parent
d4611d147c
commit
0ff555b50c
1 changed files with 2 additions and 0 deletions
|
@ -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]))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue