aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-02 19:39:41 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-02 19:39:41 +0000
commit24021189d2e0baf3ce4a304c9e53b2ee33e62b9a (patch)
treee68afc462190d172b78a40966bbff401d5f6037f /channels/chan_dahdi.c
parent56d86070e7d3062406a0c85762ccbd0ad29f7914 (diff)
fix one more warning missed because i did not have new enough libpri installed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153650 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index a24ed5fa7..314185687 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -11697,7 +11697,9 @@ static char *complete_span_helper(const char *line, const char *word, int pos, i
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;
}
}