1
0
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

remove NULL check because parse_args will fail before calling cmd_export

This commit is contained in:
Will Song 2015-11-24 18:15:35 -06:00
parent bd33a24beb
commit d8022a9f20
No known key found for this signature in database
GPG Key ID: F2B1A34F21A171E2

View File

@ -827,7 +827,7 @@ cmd_export(ProfWin *window, const char *const command, gchar **args)
cons_show("You are not currently connected.");
cons_show("");
return TRUE;
} else if(args[0]) {
} else {
GString *fname = g_string_new("");
GSList *list = NULL;
int fd;
@ -885,8 +885,6 @@ write_error:
g_slist_free(list);
close(fd);
return TRUE;
} else {
return FALSE;
}
}