commit 1850c52bb1dbf16e55a80258b63c6c6f825d49ce
parent e4be4beeb8f806daed7369e88612ed0f62abc7bd
Author: Michael Rasmussen <mir@datanom.net>
Date: Thu, 9 Sep 2021 23:42:06 +0200
Fix CID 1491374
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/notification/gtkhotkey/gtk-hotkey-key-file-registry.c b/src/plugins/notification/gtkhotkey/gtk-hotkey-key-file-registry.c
@@ -413,7 +413,8 @@ gtk_hotkey_key_file_registry_real_delete_hotkey (GtkHotkeyRegistry *base,
}
tmp_error = NULL;
- g_file_set_contents (path, contents, size, &tmp_error);
+ if (g_file_set_contents (path, contents, size, &tmp_error) != TRUE)
+ FILE_OP_ERROR(path, "g_file_set_contents");
if (tmp_error) {
g_set_error (error, GTK_HOTKEY_REGISTRY_ERROR,
GTK_HOTKEY_REGISTRY_ERROR_IO,