summaryrefslogtreecommitdiff
path: root/w32/pathstuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'w32/pathstuff.c')
-rw-r--r--w32/pathstuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/w32/pathstuff.c b/w32/pathstuff.c
index d8f3845..2ccb26d 100644
--- a/w32/pathstuff.c
+++ b/w32/pathstuff.c
@@ -86,9 +86,9 @@ w32ify(char *filename, int resolve)
char *
getcwd_fs(char* buf, int len)
{
- char *p;
+ char *p = getcwd(buf, len);
- if (p = getcwd(buf, len)) {
+ if (p) {
char *q = w32ify(buf, 0);
strncpy(buf, q, len);
}