diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-26 19:25:42 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-07-31 09:38:32 +0300 |
commit | 4535e8bf8bd491fa8e4cdbe5019f9f59988c2b3e (patch) | |
tree | a0978a112ba3a0a5fbc42ce53a4263096ac71312 | |
parent | 35c005f243fafd7cad624b8a3a64298cab8ac172 (diff) | |
download | illumos-gate-4535e8bf8bd491fa8e4cdbe5019f9f59988c2b3e.tar.gz |
11450 zoneadm: NULL pointer errors
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/cmd/zoneadm/zoneadm.c | 2 |
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); } |