Not sure how this one has gone unnoticed until now but
with valgrind's help it's going bye-bye lickety-split.
Reference(s):
==26533== Conditional jump or move depends on uninitialised value(s)
==26533== at 0x4E4082B: procps_meminfo_stack_fill (meminfo.c:408)
Signed-off-by: Jim Warner <james.warner@comcast.net>
if (info == NULL || stack == NULL || stack->head == NULL)
return -EINVAL;
- if ((rc == procps_meminfo_read(info)) < 0)
+ if ((rc = procps_meminfo_read(info)) < 0)
return rc;
return procps_meminfo_getstack(info, stack->head);