[asterisk-commits] kpfleming: trunk r153650 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 2 13:39:41 CST 2008


Author: kpfleming
Date: Sun Nov  2 13:39:41 2008
New Revision: 153650

URL: http://svn.digium.com/view/asterisk?view=rev&rev=153650
Log:
fix one more warning missed because i did not have new enough libpri installed

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=153650&r1=153649&r2=153650
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Sun Nov  2 13:39:41 2008
@@ -11697,7 +11697,9 @@
 
 	for (which = span = 0; span < NUM_SPANS; span++) {
 		if (pris[span].pri && ++which > state) {
-			asprintf(&ret, "%d", span + 1);	/* user indexes start from 1 */
+			if (asprintf(&ret, "%d", span + 1) < 0) {	/* user indexes start from 1 */
+				ast_log(LOG_WARNING, "asprintf() failed: %s\n", strerror(errno));
+			}
 			break;
 		}
 	}




More information about the asterisk-commits mailing list