aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/archive_input_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/archive_input_plugin.c b/src/input/archive_input_plugin.c
index 0de715a82..18fa735c2 100644
--- a/src/input/archive_input_plugin.c
+++ b/src/input/archive_input_plugin.c
@@ -41,7 +41,7 @@ input_archive_open(struct input_stream *is, const char *pathname)
char *archive, *filename, *suffix, *pname;
bool opened;
- if (pathname[0] != '/')
+ if (!g_path_is_absolute(pathname))
return false;
pname = g_strdup(pathname);