diff --git a/gj_common/gitjournal.c b/gj_common/gitjournal.c index 25912e29..9d99352e 100644 --- a/gj_common/gitjournal.c +++ b/gj_common/gitjournal.c @@ -360,7 +360,7 @@ char *gj_branch_name(git_repository *repo) { int err = 0; git_reference *ref = NULL; - char *shorthand = NULL; + char *shorthand = "master"; err = git_repository_head(&ref, repo); if (err < 0)