1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtcm: Coverity 89645

This commit is contained in:
Peter Howkins 2018-07-05 00:08:55 +01:00
parent fd56fc4b74
commit 39461d7548

View file

@ -343,6 +343,7 @@ StandaloneApptDragStart(
int old_attr_count;
char *apptstr;
int preDsswFlags, preRfpFlags;
char *attrstring = NULL;
/* Convert appointment into string. If not successful, don't start drag. */
appt = allocate_appt_struct(appt_write, DATAVER_ARCHIVE, NULL);
@ -368,8 +369,9 @@ StandaloneApptDragStart(
old_attr_count = appt->count;
merge_old_values(de->orig_appt, appt);
apptstr = parse_attrs_to_string(appt, de->p,
attrs_to_string(appt->attrs, appt->count));
attrstring = attrs_to_string(appt->attrs, appt->count);
apptstr = parse_attrs_to_string(appt, de->p, attrstring);
free(attrstring);
appt->count = old_attr_count;
free_appt_struct(&appt);