Skip to content

Commit 0349fa0

Browse files
committed
Merge branch 'jk/revert-squelch-compiler-warning'
Squelch false-positive compiler warning. * jk/revert-squelch-compiler-warning: revert: initialize const value
2 parents 64cbe5e + 1bad05b commit 0349fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/revert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int run_sequencer(int argc, const char **argv, const char *prefix,
111111
const char * const * usage_str = revert_or_cherry_pick_usage(opts);
112112
const char *me = action_name(opts);
113113
const char *cleanup_arg = NULL;
114-
const char sentinel_value;
114+
const char sentinel_value = 0; /* value not important */
115115
const char *strategy = &sentinel_value;
116116
const char *gpg_sign = &sentinel_value;
117117
enum empty_action empty_opt = EMPTY_COMMIT_UNSPECIFIED;

0 commit comments

Comments
 (0)