]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix for building on PowerPC under Linux.
authorJoshua Colp <jcolp@digium.com>
Mon, 18 Jun 2007 21:57:10 +0000 (21:57 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 18 Jun 2007 21:57:10 +0000 (21:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69805 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/callerid.c

index dfb43c77b6f40c81805bb7ba0589720177218b06..0ebee03e1ac397fcd7f6daba15cea04aa17719d6 100644 (file)
@@ -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;