git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
user-auth-cell-20040720
[openafs.git]
/
src
/
WINNT
/
client_creds
/
creds.cpp
diff --git
a/src/WINNT/client_creds/creds.cpp
b/src/WINNT/client_creds/creds.cpp
index
f8b58ae
..
ff568ca
100644
(file)
--- a/
src/WINNT/client_creds/creds.cpp
+++ b/
src/WINNT/client_creds/creds.cpp
@@
-459,11
+459,12
@@
int GetDefaultCell (LPTSTR pszCell)
}
if (szCellA[0] == '\0') {
- if ((rc = cm_GetRootCellName (szCellA)) == 0)
- CopyAnsiToString (pszCell, szCellA);
+ rc = cm_GetRootCellName (szCellA);
} else {
rc = 0;
}
+ if (rc == 0)
+ CopyAnsiToString(pszCell, szCellA);
}
return rc;
}