Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugreport.c: fix a crash in
git bugreport
with --no-suffix
option
executing `git bugreport --no-suffix` led to a segmentation fault due to strbuf_addftime() being called with a NULL option_suffix variable. This occurs because negating the "--[no-]suffix" option causes the parser to set option_suffix to NULL, which is not handled prior to calling strbuf_addftime(). Signed-off-by: Jiamu Sun <barroit@linux.com>
- Loading branch information