bugreport.c: fix a crash in `git bugreport` with `--no-suffix` option
commitb3b57c69dad91382ccc36ebf5d668454607dd568
authorJiamu Sun <barroit@linux.com>
Thu, 14 Mar 2024 04:00:16 +0000 (14 04:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Mar 2024 16:31:42 +0000 (16 09:31 -0700)
tree914d1ba3fe6a355332abf8f4b9581ee5fd070aa2
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
bugreport.c: fix a crash in `git bugreport` with `--no-suffix` option

`git bugreport` does not complain when `--no-suffix` is given, but
it leads to a segmentation fault as the it is not prepared to see a
NULL assigned to the option_suffix variable.

Signed-off-by: Jiamu Sun <barroit@linux.com>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-bugreport.txt
builtin/bugreport.c