Check writting crash-indicator (CID 1440021)
authorRicardo Mones <ricardo@mones.org>
Tue, 19 Feb 2019 18:23:10 +0000 (19:23 +0100)
committerRicardo Mones <ricardo@mones.org>
Tue, 19 Feb 2019 18:23:10 +0000 (19:23 +0100)
src/main.c

index 60551af..1fc5c70 100644 (file)
@@ -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);