projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fedb78
)
Correction of previous commit 6fedb78e7.
author
Andrej Kacian
<ticho@claws-mail.org>
Wed, 12 Jul 2017 18:43:07 +0000
(20:43 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Wed, 12 Jul 2017 18:44:05 +0000
(20:44 +0200)
We do not want to prematurely close tmpfp handle if
it points to outfp.
src/procmime.c
patch
|
blob
|
history
diff --git
a/src/procmime.c
b/src/procmime.c
index f62487c85d86cefa2f0b5923728b5f8a1e8f7e0f..2559dce7f1b3fbe5af481b545a5ada0a340b4856 100644
(file)
--- a/
src/procmime.c
+++ b/
src/procmime.c
@@
-460,7
+460,8
@@
gboolean procmime_decode_content(MimeInfo *mimeinfo)
err = TRUE;
}
}
- procmime_fclose(tmpfp);
+ if (tmpfp != outfp)
+ procmime_fclose(tmpfp);
} else if (encoding == ENC_X_UUENCODE) {
gchar outbuf[BUFFSIZE];
gint len;