From 455889c21496d691bd0c250b7c9401b53b5c5062 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 1 Aug 2021 10:55:31 -0400 Subject: Fixed a typo in `create_pull_request_dir()`. --- git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.c b/git.c index 19a7690..61c2408 100644 --- a/git.c +++ b/git.c @@ -311,7 +311,7 @@ int create_pull_request_dir(pull_request *pr, int id, const char *root) { } /* Is there no existing directory? */ - if (stat(pr_dir, &st) < -1) { + if (stat(pr_dir, &st) < 0) { /* Create a directory with a name of the stringified ID. */ mkdir(pr_dir, 0755); } -- cgit v1.2.3-13-gbd6f