diff --git a/devIocStats/os/Linux/osdMemUsage.c b/devIocStats/os/Linux/osdMemUsage.c index 82f8cb7..44957d7 100644 --- a/devIocStats/os/Linux/osdMemUsage.c +++ b/devIocStats/os/Linux/osdMemUsage.c @@ -38,7 +38,7 @@ int devIocStatsInitMemUsage(void) { int devIocStatsGetMemUsage(memInfo *pval) { static char statmfile[] = "/proc/self/statm"; static char memfile[] = "/proc/meminfo"; - unsigned long size, resident, value, total = 0, memfree = 0; + unsigned long size, resident = 0, value, total = 0, memfree = 0; char title[32] = ""; char units[32] = ""; int ret = 0; diff --git a/devIocStats/os/cygwin32/osdMemUsage.c b/devIocStats/os/cygwin32/osdMemUsage.c index 82f8cb7..44957d7 100644 --- a/devIocStats/os/cygwin32/osdMemUsage.c +++ b/devIocStats/os/cygwin32/osdMemUsage.c @@ -38,7 +38,7 @@ int devIocStatsInitMemUsage(void) { int devIocStatsGetMemUsage(memInfo *pval) { static char statmfile[] = "/proc/self/statm"; static char memfile[] = "/proc/meminfo"; - unsigned long size, resident, value, total = 0, memfree = 0; + unsigned long size, resident = 0, value, total = 0, memfree = 0; char title[32] = ""; char units[32] = ""; int ret = 0;