From 2f13288a23da4dfaf6c40e1e943f83d8fa43145a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 14 Jul 2016 11:45:11 +0200 Subject: Fix sme warnings... --- src/lib/libkogata/unistd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/libkogata/unistd.c') diff --git a/src/lib/libkogata/unistd.c b/src/lib/libkogata/unistd.c index 80a32e4..101e02e 100644 --- a/src/lib/libkogata/unistd.c +++ b/src/lib/libkogata/unistd.c @@ -24,7 +24,7 @@ int chdir(const char* path) { stat_t st; if (!stat(cwd_buf2, &st)) return -1; - if (!st.type & FT_DIR) return -1; + if (!(st.type & FT_DIR)) return -1; strcpy(cwd_buf, cwd_buf2); return 0; -- cgit v1.2.3