summaryrefslogtreecommitdiffstats
path: root/lib/libc/compat-43/getwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/compat-43/getwd.c')
-rw-r--r--lib/libc/compat-43/getwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/compat-43/getwd.c b/lib/libc/compat-43/getwd.c
index f105150e..9f0e633 100644
--- a/lib/libc/compat-43/getwd.c
+++ b/lib/libc/compat-43/getwd.c
@@ -47,7 +47,7 @@ getwd(buf)
{
char *p;
- if (p = getcwd(buf, MAXPATHLEN))
+ if ( (p = getcwd(buf, MAXPATHLEN)) )
return(p);
(void)strcpy(buf, strerror(errno));
return((char *)NULL);
OpenPOWER on IntegriCloud