[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r323884 - /team/irroot/t38gateway-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 15 15:21:00 CDT 2011


Author: mnicholson
Date: Wed Jun 15 15:20:53 2011
New Revision: 323884

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323884
Log:
support empty filename strings in fax cli output

Modified:
    team/irroot/t38gateway-trunk/res/res_fax.c

Modified: team/irroot/t38gateway-trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax.c?view=diff&rev=323884&r1=323883&r2=323884
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Wed Jun 15 15:20:53 2011
@@ -3073,13 +3073,7 @@
 	while ((s = ao2_iterator_next(&i))) {
 		ao2_lock(s);
 
-		if (!(filenames = generate_filenames_string(s->details, "", ", "))) {
-			ast_log(LOG_ERROR, "error printing filenames for 'fax show sessions' command");
-			ao2_unlock(s);
-			ao2_ref(s, -1);
-			ao2_iterator_destroy(&i);
-			return CLI_FAILURE;
-		}
+		filenames = generate_filenames_string(s->details, "", ", ");
 
 		ast_cli(a->fd, "%-20.20s %-10.10s %-10d %-5.5s %-10.10s %-15.15s %-30s\n",
 			s->channame, s->tech->type, s->id,




More information about the asterisk-commits mailing list