aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-curses/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface-curses/interface.c')
-rw-r--r--src/interface-curses/interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c
index ce9207e..4351379 100644
--- a/src/interface-curses/interface.c
+++ b/src/interface-curses/interface.c
@@ -1187,6 +1187,7 @@ teco_interface_get_clipboard(const gchar *name, gchar **str, gsize *len, GError
* (PDCurses does not guarantee that either).
*/
if (str) {
+ g_assert(contents != NULL);
*str = memcpy(g_malloc(length + 1), contents, length);
(*str)[length] = '\0';
}