jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=d4f27b9126675a969833793cd6b28c5c007da797

commit d4f27b9126675a969833793cd6b28c5c007da797
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Tue Jun 23 15:55:28 2015 +0300

    Tests/DnD: fix uri parsing
    
    When no \n is present at the end of the uris list, the function doesn't
    return the uri.
---
 src/bin/test_dnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/test_dnd.c b/src/bin/test_dnd.c
index 05fff6f..05369e2 100644
--- a/src/bin/test_dnd.c
+++ b/src/bin/test_dnd.c
@@ -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;

-- 


Reply via email to