summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-18 00:32:15 +0300
committerGordon Ross <gwr@nexenta.com>2018-03-25 14:16:18 -0400
commit5ae1545d344be9f4850975114f27a93364c65969 (patch)
tree169069ec16cd1695d3309106527ea687f5c4a1b6
parentf5aec9463bdc4209d1ea6ef806601aa374b3cfc8 (diff)
downloadillumos-joyent-5ae1545d344be9f4850975114f27a93364c65969.tar.gz
9311 ufs/mount: comparison between pointer and zero character constant
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Jason King <jason.brian.king@gmail.com> Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r--usr/src/cmd/fs.d/ufs/mount/mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/fs.d/ufs/mount/mount.c b/usr/src/cmd/fs.d/ufs/mount/mount.c
index 9a433ab1c0..38d44db746 100644
--- a/usr/src/cmd/fs.d/ufs/mount/mount.c
+++ b/usr/src/cmd/fs.d/ufs/mount/mount.c
@@ -533,7 +533,7 @@ mountfs(struct mnttab *mnt)
*/
if (gflg || findopt(mnt->mnt_mntopts, MNTOPT_GLOBAL)) {
if (!(flags & MS_RDONLY)) {
- if (mnt->mnt_mntopts != '\0')
+ if (mnt->mnt_mntopts[0] != '\0')
(void) strcat(mnt->mnt_mntopts, ",");
(void) strcat(mnt->mnt_mntopts, MNTOPT_LOGGING);
args.flags |= UFSMNT_LOGGING;
@@ -542,7 +542,7 @@ mountfs(struct mnttab *mnt)
* Turn off logging for read only global mounts.
* It was set to logging as default above.
*/
- if (mnt->mnt_mntopts != '\0')
+ if (mnt->mnt_mntopts[0] != '\0')
(void) strcat(mnt->mnt_mntopts, ",");
(void) strcat(mnt->mnt_mntopts, MNTOPT_NOLOGGING);
args.flags &= ~UFSMNT_LOGGING;