talons

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

commit 0c4eda32e480795f5dd97e10014d72e5af96ee29
parent 655a159a37d09813988879af691c76748d5886fc
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 @@ -1440,7 +1440,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);