[asterisk-commits] mvanbaak: trunk r169369 - /trunk/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 19 14:14:27 CST 2009


Author: mvanbaak
Date: Mon Jan 19 14:14:27 2009
New Revision: 169369

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169369
Log:
fix assignment in swapmode plug.
Spotted and fix provided by ys

(closes issue #14129)
Reported by: ys
Tested by: ys

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/asterisk.c?view=diff&rev=169369&r1=169368&r2=169369
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Mon Jan 19 14:14:27 2009
@@ -549,7 +549,7 @@
 #elif defined(HAVE_SYSCTL) && !defined(HAVE_SYSINFO)
 static int swapmode(int *used, int *total)
 {
-	used = total = 0;
+	*used = *total = 0;
 	return 1;
 }
 #endif




More information about the asterisk-commits mailing list