[asterisk-commits] oej: branch oej/pinequeue-1.8 r378645 - /team/oej/pinequeue-1.8/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 7 06:55:12 CST 2013


Author: oej
Date: Mon Jan  7 06:54:01 2013
New Revision: 378645

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378645
Log:
Don't check if a null filename actually exists. That's bad.

Modified:
    team/oej/pinequeue-1.8/apps/app_queue.c

Modified: team/oej/pinequeue-1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinequeue-1.8/apps/app_queue.c?view=diff&rev=378645&r1=378644&r2=378645
==============================================================================
--- team/oej/pinequeue-1.8/apps/app_queue.c (original)
+++ team/oej/pinequeue-1.8/apps/app_queue.c Mon Jan  7 06:54:01 2013
@@ -6199,9 +6199,11 @@
 	}
 
 	/* If the filename doesn't exist, do not queue it up */
-	if (!ast_fileexists(filename, NULL, chan->language)) {
-		ast_log(LOG_ERROR, "Filename %s does not exist, not queued for playing out on chan %s\n", filename, chan->name);
-		return 0;
+	if (!ast_strlen_zero(filename)) {
+		if (!ast_fileexists(filename, NULL, chan->language)) {
+			ast_log(LOG_ERROR, "Filename %s does not exist, not queued for playing out on chan %s\n", filename, chan->name);
+			return 0;
+		}
 	}
 
 	AST_LIST_LOCK(&aqsi->flist);




More information about the asterisk-commits mailing list