uninitialized variable in solaris backend

This commit is contained in:
Landry Breuil
2014-12-04 20:35:06 +01:00
parent c7db6cfcfc
commit 96ee31879b

View File

@@ -52,6 +52,7 @@ get_memory_usage (guint64 *memory_total, guint64 *memory_free, guint64 *memory_c
knp = kstat_data_lookup (ksp, "freemem");
*memory_free = getpagesize () * knp->value.ui64;
*memory_cache = 0;
*memory_buffers = 0;
*swap_total = *swap_free = 0;
if ((n = swapctl (SC_GETNSWP, NULL)) > 0)