fix assignment in swapmode plug.
authorMichiel van Baak <michiel@vanbaak.info>
Mon, 19 Jan 2009 20:14:27 +0000 (20:14 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Mon, 19 Jan 2009 20:14:27 +0000 (20:14 +0000)
Spotted and fix provided by ys

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

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

main/asterisk.c

index f3c7fca..7cc9b6c 100644 (file)
@@ -549,7 +549,7 @@ static int swapmode(int *used, int *total)
 #elif defined(HAVE_SYSCTL) && !defined(HAVE_SYSINFO)
 static int swapmode(int *used, int *total)
 {
-       used = total = 0;
+       *used = *total = 0;
        return 1;
 }
 #endif