Skip to content

Commit 46c0eb5

Browse files
pcloudsgitster
authored andcommitted
files-backend.c: fix build error on Solaris
This function files_reflog_path returns void, which usually means "return;" not returning "void value" from another function. Reported-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 14f74d5 commit 46c0eb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

refs/files-backend.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ static void files_reflog_path(struct files_ref_store *refs,
180180
break;
181181
case REF_TYPE_OTHER_PSEUDOREF:
182182
case REF_TYPE_MAIN_PSEUDOREF:
183-
return files_reflog_path_other_worktrees(refs, sb, refname);
183+
files_reflog_path_other_worktrees(refs, sb, refname);
184+
break;
184185
case REF_TYPE_NORMAL:
185186
strbuf_addf(sb, "%s/logs/%s", refs->gitcommondir, refname);
186187
break;

0 commit comments

Comments
 (0)