projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eadad58
)
Fix unchecked return value - Patch by Christian Hesse
author
Colin Leroy
<colin@colino.net>
Fri, 20 Jun 2014 10:38:55 +0000
(12:38 +0200)
committer
Colin Leroy
<colin@colino.net>
Fri, 20 Jun 2014 10:38:55 +0000
(12:38 +0200)
src/plugins/mailmbox/mailmbox.c
patch
|
blob
|
history
diff --git
a/src/plugins/mailmbox/mailmbox.c
b/src/plugins/mailmbox/mailmbox.c
index 48a7a682ed1762a69b758cefb4ea58dc4a9aad71..500d0263cf6d220804508e895fe4dd1efbbdccee 100644
(file)
--- a/
src/plugins/mailmbox/mailmbox.c
+++ b/
src/plugins/mailmbox/mailmbox.c
@@
-676,7
+676,9
@@
claws_mailmbox_append_message_list_no_lock(struct claws_mailmbox_folder * folder
r = claws_mailmbox_map(folder);
if (r < 0) {
debug_print("claws_mailmbox_map failed with %d\n", r);
- ftruncate(folder->mb_fd, old_size);
+ r = ftruncate(folder->mb_fd, old_size);
+ if (r < 0)
+ debug_print("ftruncate failed with %d\n", r);
return MAILMBOX_ERROR_FILE;
}