projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
801c7d3
)
dtcm: Coverity 89021
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 22:50:31 +0000
(23:50 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 22:50:31 +0000
(23:50 +0100)
cde/programs/dtcm/libDtCmP/cm_tty.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/libDtCmP/cm_tty.c
b/cde/programs/dtcm/libDtCmP/cm_tty.c
index 77590ed36b98523763e0c4f07de9886f7ee8c41a..588f4e5a83a8dd356e7c201f935c81344eaf62d8 100644
(file)
--- a/
cde/programs/dtcm/libDtCmP/cm_tty.c
+++ b/
cde/programs/dtcm/libDtCmP/cm_tty.c
@@
-2096,8
+2096,10
@@
appointments_to_file(CSA_session_handle target, CSA_entry_handle *appointment_li
if (f_ptr == NULL)
return(B_FALSE);
- if (num_appts == 0)
+ if (num_appts == 0) {
+ fclose(f_ptr);
return(B_FALSE);
+ }
fprintf(f_ptr, "DTCM Archive 1.0\n");
for (i = 0; i < num_appts; i++) {