mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 89502
This commit is contained in:
parent
29dabbd900
commit
caee0e9cb5
1 changed files with 7 additions and 1 deletions
|
@ -453,8 +453,14 @@ blist_init_names(Calendar *c) {
|
|||
blist_name_append(c, get_char_prop(p, CP_DEFAULTCAL), BLIST_ACTIVE);
|
||||
|
||||
namelist = cm_strdup(get_char_prop(p, CP_DAYCALLIST));
|
||||
if (namelist == NULL || *namelist == '\0' )
|
||||
if(namelist == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(*namelist == '\0') {
|
||||
free(namelist);
|
||||
return;
|
||||
}
|
||||
|
||||
name = strtok(namelist, " ");
|
||||
while (name) {
|
||||
|
|
Loading…
Reference in a new issue