]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
cgit.c: remove useless null check
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 28a2f149c6cd41d8c113acf4d6e9db254a82685f..5937b9e503d8f8642692196385ae705fa59b371c 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -110,7 +110,7 @@ static void config_cb(const char *name, const char *value)
                ctx.repo->path = trim_end(value, '/');
        else if (ctx.repo && starts_with(name, "repo."))
                repo_config(ctx.repo, name + 5, value);
-       else if (!strcmp(name, "readme") && value != NULL)
+       else if (!strcmp(name, "readme"))
                string_list_append(&ctx.cfg.readme, xstrdup(value));
        else if (!strcmp(name, "root-title"))
                ctx.cfg.root_title = xstrdup(value);