summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/zoneadm/zoneadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/zoneadm/zoneadm.c b/usr/src/cmd/zoneadm/zoneadm.c
index 53bfe08855..e5b1bc4a07 100644
--- a/usr/src/cmd/zoneadm/zoneadm.c
+++ b/usr/src/cmd/zoneadm/zoneadm.c
@@ -3883,7 +3883,7 @@ cleanup_zonepath(char *zonepath, boolean_t all)
* We shouldn't need these checks but lets be paranoid since we
* could blow away the whole system here if we got the wrong zonepath.
*/
- if (*zonepath == NULL || strcmp(zonepath, "/") == 0) {
+ if (*zonepath == '\0' || strcmp(zonepath, "/") == 0) {
(void) fprintf(stderr, "invalid zonepath '%s'\n", zonepath);
return (Z_INVAL);
}