mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
libafs: Initialize _settok_tokenCell primary flag
Always set the *primary flag to something in _settok_tokenCell. Otherwise, the lag may be unset, as it is not required to be initialized by all callers. Change-Id: I78c775f8cd70f74f6a344094a6a677cbc74f3281 Reviewed-on: http://gerrit.openafs.org/4521 Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
ce77b0e572
commit
1b37cc8942
@ -1785,6 +1785,10 @@ _settok_tokenCell(char *cellName, int *cellNum, int *primary) {
|
||||
int t1;
|
||||
struct cell *cell;
|
||||
|
||||
if (primary) {
|
||||
*primary = 0;
|
||||
}
|
||||
|
||||
if (cellName && strlen(cellName) > 0) {
|
||||
cell = afs_GetCellByName(cellName, READ_LOCK);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user