diff options
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/libinstzones/common/zones.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libinstzones/common/zones.c b/usr/src/lib/libinstzones/common/zones.c index 8b62e15751..2e30c24281 100644 --- a/usr/src/lib/libinstzones/common/zones.c +++ b/usr/src/lib/libinstzones/common/zones.c @@ -1231,9 +1231,9 @@ z_set_zone_root(const char *zroot) } /* free any existing cached root path */ - if (*_z_global_data._z_root_dir != '\0') { free(_z_global_data._z_root_dir); + _z_global_data._z_root_dir = NULL; } /* store duplicate of new zone root path */ @@ -1241,7 +1241,7 @@ z_set_zone_root(const char *zroot) if (*rootdir != '\0') { _z_global_data._z_root_dir = _z_strdup(rootdir); } else { - *_z_global_data._z_root_dir = '\0'; + _z_global_data._z_root_dir = ""; } /* set zone root path */ |