summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-23 15:55:28 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-23 15:55:31 +0300
commitd4f27b9126675a969833793cd6b28c5c007da797 (patch)
tree1873b085448d728daea1c7fcca566596156d2c9f
parenta0001e5a66f1711b30d891321006ad6f4a3eaf6f (diff)
Tests/DnD: fix uri parsing
When no \n is present at the end of the uris list, the function doesn't return the uri.
-rw-r--r--src/bin/test_dnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/test_dnd.c b/src/bin/test_dnd.c
index 05fff6f79..05369e250 100644
--- a/src/bin/test_dnd.c
+++ b/src/bin/test_dnd.c
@@ -105,6 +105,7 @@ _drag_data_extract(char **drag_data)
105 if (s) 105 if (s)
106 p += FILESEP_LEN; 106 p += FILESEP_LEN;
107 s = strchr(p, '\n'); 107 s = strchr(p, '\n');
108 uri = p;
108 if (s) 109 if (s)
109 { 110 {
110 if (s - p > 0) 111 if (s - p > 0)
@@ -130,7 +131,6 @@ _drag_data_extract(char **drag_data)
130 } 131 }
131 else 132 else
132 p = NULL; 133 p = NULL;
133 uri = p;
134 *drag_data = s; 134 *drag_data = s;
135 135
136 return uri; 136 return uri;