From 4785361388d21c46dd30332d89bb201522ee1a6c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 21 Jun 2012 19:37:25 -0400 Subject: [PATCH] Windows: cm_GetROVolumeID empty server list check Instead of testing for a non-NULL server list, check to see that the list itself is non-empty. Change-Id: I1d8be33cd5f0713677d6013f5d7344400f6b1ae6 Reviewed-on: http://gerrit.openafs.org/7640 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_volume.c b/src/WINNT/afsd/cm_volume.c index 6a87a9ced1..00960360d4 100644 --- a/src/WINNT/afsd/cm_volume.c +++ b/src/WINNT/afsd/cm_volume.c @@ -1194,7 +1194,7 @@ long cm_GetROVolumeID(cm_volume_t *volp) long id; lock_ObtainRead(&volp->rw); - if (volp->vol[ROVOL].ID && volp->vol[ROVOL].serversp) + if (volp->vol[ROVOL].ID && !cm_IsServerListEmpty(volp->vol[ROVOL].serversp)) id = volp->vol[ROVOL].ID; else id = volp->vol[RWVOL].ID;