mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 88165
This commit is contained in:
parent
35ce247f9b
commit
d46a8e8d94
1 changed files with 4 additions and 2 deletions
|
@ -2186,10 +2186,12 @@ str_to_period(char *ps, CSA_sint32 *repeat_type, int *repeat_nth) {
|
|||
unit++;
|
||||
ps2 = cm_strdup(unit);
|
||||
ptr = strchr(ps2, ' ');
|
||||
if (ptr != NULL)
|
||||
if (ptr != NULL) {
|
||||
*ptr = '\0';
|
||||
else
|
||||
} else {
|
||||
free(ps2);
|
||||
return;
|
||||
}
|
||||
|
||||
ptr++;
|
||||
while (*ptr == ' ')
|
||||
|
|
Loading…
Reference in a new issue