14 lines
458 B
Diff
14 lines
458 B
Diff
Index: file-roller-2.19.2/src/file-utils.c
|
|
===================================================================
|
|
--- file-roller-2.19.2.orig/src/file-utils.c
|
|
+++ file-roller-2.19.2/src/file-utils.c
|
|
@@ -1206,7 +1206,7 @@ get_uri_from_path (const char *path)
|
|
{
|
|
if (path == NULL)
|
|
return NULL;
|
|
- if ((path == "") || (path[0] == '/'))
|
|
+ if ((!strcmp (path, "")) || (path[0] == '/'))
|
|
return g_strconcat ("file://", path, NULL);
|
|
return g_strdup (path);
|
|
}
|