Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
files-backend.c: fix build error on Solaris
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 25 Nov 2018 04:58:16 +0000
(
05:58
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 26 Nov 2018 06:22:58 +0000
(15:22 +0900)
This function files_reflog_path returns void, which usually means
"return;" not returning "void value" from another function.
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
14f74d5
)
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index 9183875dadb72c4b285b8a99ee7df7620a1e7eeb..dd8abe918508027ed46c3234bac1d91107c6ca94 100644
(file)
--- a/
refs/files-backend.c
+++ b/
refs/files-backend.c
@@
-180,7
+180,8
@@
static void files_reflog_path(struct files_ref_store *refs,
break;
case REF_TYPE_OTHER_PSEUDOREF:
case REF_TYPE_MAIN_PSEUDOREF:
- return files_reflog_path_other_worktrees(refs, sb, refname);
+ files_reflog_path_other_worktrees(refs, sb, refname);
+ break;
case REF_TYPE_NORMAL:
strbuf_addf(sb, "%s/logs/%s", refs->gitcommondir, refname);
break;