libadmin: Don't pass garbage to pts_GroupCreate
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 11:36:31 +0000 (11:36 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 7 Mar 2013 16:05:08 +0000 (08:05 -0800)
commitece7bd669af0c58dcaa2589e093387adb7d1756a
tree274845d53592fb31a9dcfd634b96315bd72dd7b8
parentf5b462c9d4a56be0ae4696db08fb92a1e7390e2c
libadmin: Don't pass garbage to pts_GroupCreate

The libadmin pts_GroupCreate function uses the value passed to
it in newGroupId to control whether the group is being created
with a user supplied ID or not.

Initialise this value in the caller, so we don't end up creating
groups with corrupt ids.

Caught by clang (#985978)

Change-Id: I5c3e2cec5b39b8eecbea316e351480863d3d7761
Reviewed-on: http://gerrit.openafs.org/9400
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/libadmin/test/pts.c