summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/cmd/dfs.cmds/sharemgr/commands.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/cmd/dfs.cmds/sharemgr/commands.c b/usr/src/cmd/dfs.cmds/sharemgr/commands.c
index 60a092bd35..78e1b37cc6 100644
--- a/usr/src/cmd/dfs.cmds/sharemgr/commands.c
+++ b/usr/src/cmd/dfs.cmds/sharemgr/commands.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -3391,6 +3389,7 @@ sa_set_share(sa_handle_t handle, int flags, int argc, char *argv[])
ret = SA_INVALID_NAME;
(void) printf(gettext("Invalid resource name: "
"%s\n"), newname);
+ newname = NULL;
} else {
newrsrc = conv_to_utf8(newname);
}