]> git.cameronkatri.com Git - cgit.git/blobdiff - shared.c
ui-shared: fix segfault when defbranch is NULL
[cgit.git] / shared.c
index a078a27b1bcc2accf5982ae8d1af005f728bac4c..a63633b295578cc9302b9842722a0184e4e02792 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -54,6 +54,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
        ret->path = NULL;
        ret->desc = cgit_default_repo_desc;
        ret->owner = NULL;
+       ret->homepage = NULL;
        ret->section = ctx.cfg.section;
        ret->snapshots = ctx.cfg.snapshots;
        ret->enable_commit_graph = ctx.cfg.enable_commit_graph;