Merged revisions 69805 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 18 Jun 2007 21:58:37 +0000 (21:58 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 18 Jun 2007 21:58:37 +0000 (21:58 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r69805 | file | 2007-06-18 17:57:10 -0400 (Mon, 18 Jun 2007) | 2 lines

Fix for building on PowerPC under Linux.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69806 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/callerid.c

index 1401bbb..6102d40 100644 (file)
@@ -631,7 +631,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;