mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 88858
This commit is contained in:
parent
e18054a5da
commit
8f2b74aa6d
1 changed files with 4 additions and 1 deletions
|
@ -1982,12 +1982,15 @@ add_to_todo_list(CSA_entry_handle entry, ToDo *t) {
|
|||
if (lines && lines->s) {
|
||||
buf = (char *)ckalloc(cm_strlen(lines->s) + 1);
|
||||
strcpy(buf, lines->s);
|
||||
destroy_lines(lines);
|
||||
} else {
|
||||
buf = (char *)ckalloc(1);
|
||||
buf[0] = '\0';
|
||||
}
|
||||
|
||||
if(lines) {
|
||||
destroy_lines(lines);
|
||||
}
|
||||
|
||||
str = XmStringCreateLocalized(buf);
|
||||
XmListAddItem(t->todo_list, str, 0);
|
||||
free_appt_struct(&appt);
|
||||
|
|
Loading…
Reference in a new issue