Work with NULL lists.
This commit is contained in:
parent
39ea0cb84d
commit
312d6f3e57
@ -84,9 +84,11 @@ RC_STRING *rc_stringlist_find(RC_STRINGLIST *list, const char *value)
|
|||||||
{
|
{
|
||||||
RC_STRING *s;
|
RC_STRING *s;
|
||||||
|
|
||||||
TAILQ_FOREACH(s, list, entries)
|
if (list) {
|
||||||
if (strcmp(s->value, value) == 0)
|
TAILQ_FOREACH(s, list, entries)
|
||||||
return s;
|
if (strcmp(s->value, value) == 0)
|
||||||
|
return s;
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
librc_hidden_def(rc_stringlist_find)
|
librc_hidden_def(rc_stringlist_find)
|
||||||
|
Loading…
Reference in New Issue
Block a user