aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/interface-curses/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c
index f99f413..11441d2 100644
--- a/src/interface-curses/interface.c
+++ b/src/interface-curses/interface.c
@@ -1529,7 +1529,7 @@ teco_interface_set_clipboard(const gchar *name, const gchar *str, gsize str_len,
return FALSE;
}
- g_auto(teco_string_t) command;
+ g_auto(teco_string_t) command = {NULL, 0};
if (!reg->vtable->get_string(reg, &command.data, &command.len, NULL, error))
return FALSE;
if (teco_string_contains(command, '\0')) {
@@ -1590,7 +1590,7 @@ teco_interface_get_clipboard(const gchar *name, gchar **str, gsize *len, GError
return FALSE;
}
- g_auto(teco_string_t) command;
+ g_auto(teco_string_t) command = {NULL, 0};
if (!reg->vtable->get_string(reg, &command.data, &command.len, NULL, error))
return FALSE;
if (teco_string_contains(command, '\0')) {