Skip to content

Commit 3e885f0

Browse files
Denton-Lgitster
authored andcommitted
stash: declare ref_stash as an array
Save sizeof(const char *) bytes by declaring ref_stash as an array instead of having a redundant pointer to an array. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c2462d commit 3e885f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/stash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static const char * const git_stash_save_usage[] = {
8787
NULL
8888
};
8989

90-
static const char *ref_stash = "refs/stash";
90+
static const char ref_stash[] = "refs/stash";
9191
static struct strbuf stash_index_path = STRBUF_INIT;
9292

9393
/*

0 commit comments

Comments
 (0)