Message ID | 20201123032342.24566-2-nate@roosteregg.cc (mailing list archive) |
---|---|
State | Accepted |
Commit | c3eb95a0d759d80d53ccb396627c400cd3db6e6d |
Headers | show |
Series | Fix a segfault in git log --notes | expand |
nate@roosteregg.cc writes: > if (*load_refs && !strcmp(k, "notes.displayref")) { > if (!v) > - config_error_nonbool(k); > + return config_error_nonbool(k); "git grep config_error_nonbool" tells us that this is the only instance that ignores the return value from the function and does not cause the caller to die. Looks good. Thanks.
diff --git a/notes.c b/notes.c index 564baac64d..d5ac081e76 100644 --- a/notes.c +++ b/notes.c @@ -970,7 +970,7 @@ static int notes_display_config(const char *k, const char *v, void *cb) if (*load_refs && !strcmp(k, "notes.displayref")) { if (!v) - config_error_nonbool(k); + return config_error_nonbool(k); string_list_add_refs_by_glob(&display_notes_refs, v); }