[asterisk-commits] russell: branch 1.4 r78184 - /branches/1.4/include/asterisk/linkedlists.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 6 11:50:55 CDT 2007
Author: russell
Date: Mon Aug 6 11:50:54 2007
New Revision: 78184
URL: http://svn.digium.com/view/asterisk?view=rev&rev=78184
Log:
Fix the return value of AST_LIST_REMOVE(). This shouldn't be causing any
problems, though, because the only code that uses the return value only checks
to see if it is NULL.
(closes issue #10390, pointed out by mihai)
Modified:
branches/1.4/include/asterisk/linkedlists.h
Modified: branches/1.4/include/asterisk/linkedlists.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/linkedlists.h?view=diff&rev=78184&r1=78183&r2=78184
==============================================================================
--- branches/1.4/include/asterisk/linkedlists.h (original)
+++ branches/1.4/include/asterisk/linkedlists.h Mon Aug 6 11:50:54 2007
@@ -741,7 +741,7 @@
while (curelm && (curelm->field.next != (elm))) \
curelm = curelm->field.next; \
if (curelm) { \
- __res = curelm; \
+ __res = (elm); \
curelm->field.next = (elm)->field.next; \
if ((head)->last == (elm)) \
(head)->last = curelm; \
More information about the asterisk-commits
mailing list