libadmin: Don't use undefined value

If IsValidCellHandle returns false, then we can jump to
fail_pts_GroupMemberRemove, and end up using a value for
ids.idlist_val which hasn't been defined. Fix this.

Caught by clang-analyzer.

Change-Id: I030d155f9ad2481250e84c31d4d7d26cb39a9c61
Reviewed-on: http://gerrit.openafs.org/2136
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2010-06-11 23:50:29 +01:00 committed by Derrick Brashear
parent 6c645092ee
commit 5388e1425d

View File

@ -1479,6 +1479,8 @@ pts_GroupMemberRemove(const void *cellHandle, const char *userName,
afs_cell_handle_p c_handle = (afs_cell_handle_p) cellHandle; afs_cell_handle_p c_handle = (afs_cell_handle_p) cellHandle;
idlist ids; idlist ids;
ids.idlist_val = NULL;
/* /*
* Validate arguments * Validate arguments
*/ */