diff options
-rw-r--r-- | commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -47,6 +47,11 @@ static void list_remote(GString *string, gchar *remotehost, gchar *dirname, GErr } gchar **data = server_list(server, dirname); + if(data == NULL) { + *error = g_error_new(commands_quark(), 0, "couldn't retrieve list"); + return; + } + g_debug("got %d results from %s", g_strv_length(data), remotehost); for(gint i = 0; i < g_strv_length(data); i++) { |