diff options
author | Gary Mills <gary_mills@fastmail.fm> | 2015-02-23 09:39:52 -0600 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2015-02-27 17:55:17 -0500 |
commit | 4f1c6a56e2a145f04e3f26d5c1d6e79cff937069 (patch) | |
tree | b88e4bd90a995437b8d74bd6eaa801fb5592c199 /usr/src/cmd | |
parent | 20afa66e72e7c210ef1f9053d4bc8f5b60d1eeed (diff) | |
download | illumos-gate-4f1c6a56e2a145f04e3f26d5c1d6e79cff937069.tar.gz |
5526 One more gcc warning for cmd/power
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r-- | usr/src/cmd/power/handlers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/power/handlers.c b/usr/src/cmd/power/handlers.c index b74004955a..70f489ab12 100644 --- a/usr/src/cmd/power/handlers.c +++ b/usr/src/cmd/power/handlers.c @@ -19,6 +19,7 @@ * CDDL HEADER END */ /* + * Copyright 2015 Gary Mills * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1015,7 +1016,7 @@ ztop(char *arg, char *diskname) } arg += 14; (void) strncpy(pool_name, arg, MAXPATHLEN); - if (p = strchr(pool_name, '/')) + if ((p = strchr(pool_name, '/')) != NULL) *p = '\0'; STRCPYLIM(new_cc.cf_fs, p + 1, "statefile path"); |