diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-08-13 15:00:54 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-08-13 15:00:54 +0000 |
commit | 9ea5fb8954e39463efb33bc0f7e6b3482ba8fc85 (patch) | |
tree | a48fd0fd0ad304cc1b1da1506f3bd633a0cbc937 /bin/sh | |
parent | 4bcaa2acb8bba06a1770686b53a1770a2bc7acbe (diff) | |
download | FreeBSD-src-9ea5fb8954e39463efb33bc0f7e6b3482ba8fc85.zip FreeBSD-src-9ea5fb8954e39463efb33bc0f7e6b3482ba8fc85.tar.gz |
Use assignment rather than comparison.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 41d8513..f92f564 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -1600,7 +1600,7 @@ getprompt(void *unused __unused) */ case 'h': case 'H': - ps[i] == '\0'; + ps[i] = '\0'; gethostname(&ps[i], PROMPTLEN - i); /* Skip to end of hostname. */ trim = (*fmt == 'h') ? '.' : '\0'; @@ -1616,7 +1616,7 @@ getprompt(void *unused __unused) */ case 'W': case 'w': - ps[i] == '\0'; + ps[i] = '\0'; getcwd(&ps[i], PROMPTLEN - i); if (*fmt == 'W') { /* Final path component only. */ |