summaryrefslogtreecommitdiff
path: root/tests/examples/seek/seek.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/seek/seek.c')
-rw-r--r--tests/examples/seek/seek.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c
index 633a4a2a1..3baddccd6 100644
--- a/tests/examples/seek/seek.c
+++ b/tests/examples/seek/seek.c
@@ -2661,8 +2661,9 @@ main (int argc, char **argv)
pipeline_spec = argv[2];
- if (g_strrstr (pipeline_spec, "*") != NULL ||
- g_strrstr (pipeline_spec, "?") != NULL) {
+ if (g_path_is_absolute (pipeline_spec) &&
+ (g_strrstr (pipeline_spec, "*") != NULL ||
+ g_strrstr (pipeline_spec, "?") != NULL)) {
paths = handle_wildcards (pipeline_spec);
} else {
paths = g_list_prepend (paths, g_strdup (pipeline_spec));