(file_mask_dialog): don't return an empty string.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-07-01 10:45:47 +03:00
parent 0af1c270e2
commit 32687c9c4e
2 changed files with 2 additions and 4 deletions

View File

@ -1821,9 +1821,6 @@ do_confirm_copy_move (const WPanel * panel, FileOperation operation, gboolean fo
g_free (format);
g_free (dest_dir);
if (ret == NULL || ret[0] == '\0')
MC_PTR_FREE (ret);
return ret;
}

View File

@ -1300,7 +1300,8 @@ file_mask_dialog (file_op_context_t * ctx, FileOperation operation,
{
g_free (def_text_secure);
g_free (source_mask);
return dest_dir;
g_free (dest_dir);
return NULL;
}
ctx->search_handle = mc_search_new (source_mask, NULL);