talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 7855a65deb5fdc6a2db1fa1cb667dfe4b99f4f55
parent c0e2f35a7520634ddf723dc6954d5bf257652cbb
Author: Ricardo Mones <ricardo@mones.org>
Date:   Tue, 19 Feb 2019 19:23:10 +0100

Check writting crash-indicator (CID 1440021)

Diffstat:
Msrc/main.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -1434,7 +1434,9 @@ int main(int argc, char *argv[]) folder_item_update_freeze(); } /* make the crash-indicator file */ - str_write_to_file("foo", get_crashfile_name(), FALSE); + if (str_write_to_file("foo", get_crashfile_name(), FALSE) < 0) { + g_warning("Can't create the crash-indicator file."); + } inc_autocheck_timer_init(mainwin);