summaryrefslogtreecommitdiff
path: root/pith/mimedesc.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/mimedesc.c')
-rw-r--r--pith/mimedesc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pith/mimedesc.c b/pith/mimedesc.c
index 665ce253..e25f5d4e 100644
--- a/pith/mimedesc.c
+++ b/pith/mimedesc.c
@@ -434,6 +434,8 @@ zero_atmts(ATTACH_S *atmts)
ATTACH_S *a;
for(a = atmts; a->description != NULL; a++){
+ a->tmpdir = NULL; /* short lived variabled, cleared right after use */
+ a->cid_tmpfile = NULL; /* resetting pointer is enough */
fs_give((void **)&(a->description));
fs_give((void **)&(a->number));
}