Tests/DnD: fix uri parsing

When no \n is present at the end of the uris list, the function doesn't
return the uri.
This commit is contained in:
Daniel Zaoui 2015-06-23 15:55:28 +03:00
parent 4033c8f587
commit dff887b560
1 changed files with 1 additions and 1 deletions

View File

@ -105,6 +105,7 @@ _drag_data_extract(char **drag_data)
if (s)
p += FILESEP_LEN;
s = strchr(p, '\n');
uri = p;
if (s)
{
if (s - p > 0)
@ -130,7 +131,6 @@ _drag_data_extract(char **drag_data)
}
else
p = NULL;
uri = p;
*drag_data = s;
return uri;