aboutsummaryrefslogtreecommitdiffstats
path: root/main/callerid.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-18 21:57:10 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-18 21:57:10 +0000
commit52b884731efe2de306c3f688045dd7180a48fa0a (patch)
treea7e052012629bf2d6fa5fd0a72841853c24af71f /main/callerid.c
parent9759bb5e5ec5cf03f774e2366b272bdb2a82ac73 (diff)
Fix for building on PowerPC under Linux.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69805 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/callerid.c')
-rw-r--r--main/callerid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/callerid.c b/main/callerid.c
index dfb43c77b..0ebee03e1 100644
--- a/main/callerid.c
+++ b/main/callerid.c
@@ -660,7 +660,8 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int
default:
ast_log(LOG_NOTICE, "Unknown IE %d\n", cid->rawdata[x-1]);
}
- if(0 > cid->rawdata[x]){ /* Negative offset in the CID Spill */
+ res = cid->rawdata[x];
+ if (0 > res){ /* Negative offset in the CID Spill */
ast_log(LOG_NOTICE, "IE %d has bad field length of %d at offset %d\n", cid->rawdata[x-1], cid->rawdata[x], x);
/* Try again */
cid->sawflag = 0;