summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pullreqd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pullreqd.c b/pullreqd.c
index 8be5122..039b8bc 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -53,7 +53,7 @@ void init_daemon(int change_dir, char *path) {
* the root directory if path isn't set.
*/
if (change_dir) {
- chdir((!path) ? path : "/");
+ chdir((!path) ? "/" : path);
}
/* Close any open file descriptors. */