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);