From 9ea5fb8954e39463efb33bc0f7e6b3482ba8fc85 Mon Sep 17 00:00:00 2001 From: stefanf Date: Sat, 13 Aug 2005 15:00:54 +0000 Subject: Use assignment rather than comparison. --- bin/sh/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/sh') 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. */ -- cgit v1.1