This code was probably never executed, but now that lcstring() has
an AFS_NONNULL annotation, the static analyzer indicates the
potential null-pointer-dereference.
Change-Id: Idb41c2af1cb38bc5c084d4912614e0a553d4aa5a
Reviewed-on: http://gerrit.openafs.org/7864
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
char cellname[MAXKTCREALMLEN];
LOCK_GLOBAL_MUTEX;
- if (cell && !strlen(cell))
- cell = 0;
+ if (cell == NULL || strlen(cell) == 0)
+ cell = NULL;
else
cell = lcstring(cellname, cell, sizeof(cellname));