cgit.c: remove useless null check

Everywhere else in this function we do not check whether the value is
null and parse_configfile() never passes a null value to this callback.

Coverity-id: 13846
Signed-off-by: John Keeping <john@keeping.me.uk>
这个提交包含在:
John Keeping 2015-10-08 23:23:56 +01:00 提交者 Jason A. Donenfeld
父节点 978ce8c00c
当前提交 94182d6031
共有 1 个文件被更改,包括 1 次插入1 次删除

2
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);