Supressed some warnings
This commit is contained in:
parent
71a2370b91
commit
ce137185ad
@ -353,13 +353,15 @@ static void mdiary_add_file_to_store(struct mdiary_scanner *mdiary_scanner,
|
|||||||
if (g_date_time_to_unix(datetime) < mdiary_scanner->time_earliest)
|
if (g_date_time_to_unix(datetime) < mdiary_scanner->time_earliest)
|
||||||
mdiary_scanner->time_earliest = g_date_time_to_unix(datetime);
|
mdiary_scanner->time_earliest = g_date_time_to_unix(datetime);
|
||||||
|
|
||||||
|
if (!content) {
|
||||||
g_input_stream_close(G_INPUT_STREAM(dstream), NULL, NULL);
|
g_input_stream_close(G_INPUT_STREAM(dstream), NULL, NULL);
|
||||||
g_input_stream_close(G_INPUT_STREAM(stream), NULL, NULL);
|
g_input_stream_close(G_INPUT_STREAM(stream), NULL, NULL);
|
||||||
|
g_object_unref(file);
|
||||||
|
}
|
||||||
g_string_free(text, 0);
|
g_string_free(text, 0);
|
||||||
g_free(summary);
|
g_free(summary);
|
||||||
g_free(title);
|
g_free(title);
|
||||||
g_date_time_unref(datetime);
|
g_date_time_unref(datetime);
|
||||||
g_object_unref(file);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mdiary_add_gpg_to_store(struct mdiary_scanner *mdiary_scanner,
|
static void mdiary_add_gpg_to_store(struct mdiary_scanner *mdiary_scanner,
|
||||||
@ -374,10 +376,10 @@ static void mdiary_add_gpg_to_store(struct mdiary_scanner *mdiary_scanner,
|
|||||||
cmd = g_strdup_printf("gpg --decrypt %s", filename);
|
cmd = g_strdup_printf("gpg --decrypt %s", filename);
|
||||||
|
|
||||||
if (g_spawn_command_line_sync(cmd, &cmd_stdout, &cmd_stderr, &exit_status, NULL) && exit_status == 0) {
|
if (g_spawn_command_line_sync(cmd, &cmd_stdout, &cmd_stderr, &exit_status, NULL) && exit_status == 0) {
|
||||||
g_print("GPG: Decryption OK!\n");
|
g_message("GPG: Decryption OK!\n");
|
||||||
mdiary_add_file_to_store(mdiary_scanner, filename, cmd_stdout, entryListStore, autoCompletion);
|
mdiary_add_file_to_store(mdiary_scanner, filename, cmd_stdout, entryListStore, autoCompletion);
|
||||||
} else {
|
} else {
|
||||||
g_print("GPG: Decryption of message failed!\n"
|
g_warning("GPG: Decryption of message failed!\n"
|
||||||
"---------- SNIP ----------\n"
|
"---------- SNIP ----------\n"
|
||||||
"%s"
|
"%s"
|
||||||
"---------- SNIP ----------\n",
|
"---------- SNIP ----------\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user