Commit 3924c4e7 authored by Thomas Guillem's avatar Thomas Guillem

smb2: don't display blank error (when interrupted)

parent f37171e5
......@@ -669,9 +669,10 @@ Open(vlc_object_t *p_obj)
if (ret != 0)
{
vlc_dialog_display_error(access,
_("SMB2 operation failed"), "%s",
smb2_get_error(sys->smb2));
const char *error = smb2_get_error(sys->smb2);
if (error && *error)
vlc_dialog_display_error(access,
_("SMB2 operation failed"), "%s", error);
goto error;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment