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>
afs_status_t st = 0;
char *owner = as->parms[OWNER].items->data;
char *group = as->parms[GROUP].items->data;
- int new_group_id;
+ int new_group_id = 0;
if (!pts_GroupCreate(cellHandle, group, owner, &new_group_id, &st)) {
ERR_ST_EXT("pts_GroupMemberAdd", st);