pkgng/pkgng — Issue #121: Uninitialised variable nx is incremented in libpkg/usergroup.c
Author: crees
Created: 2011-12-18 10:35:15+00:00
State: open

Patch at [1]. I think it should be logical to initialise it to 0;

if(grnew == NULL) /* If this evaluates to false, then nx is still full of junk and then */
{ blah }
n++; /* oops */

Chris

[1] http://www.bayofrum.net/~crees/patches/pkgng-initialise-nx.diff