diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index f1b7445594b1c6ec58c49881602c1c8778a3c02e..6a47bef87c18f233a3466ebc717a6b73fb62ee41 100644 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -509,7 +509,7 @@ static void queue_file(const char *filename, time_t when) int res; time_t now = time(NULL); - if (filename[0] != '/') { + if (!strchr(filename, '/')) { char *fn = ast_alloca(strlen(qdir) + strlen(filename) + 2); sprintf(fn, "%s/%s", qdir, filename); /* SAFE */ filename = fn;