aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/file_input_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/file_input_plugin.c')
-rw-r--r--src/input/file_input_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/file_input_plugin.c b/src/input/file_input_plugin.c
index 5dbbefcce..07c1e4ed6 100644
--- a/src/input/file_input_plugin.c
+++ b/src/input/file_input_plugin.c
@@ -39,7 +39,7 @@ input_file_open(struct input_stream *is, const char *filename)
char* pathname = g_strdup(filename);
- if (filename[0] != '/')
+ if (!g_path_is_absolute(filename))
{
g_free(pathname);
return false;