mirror of
https://github.com/git-for-windows/git.git
synced 2025-12-13 00:06:03 -06:00
When TRACE2 analytics is enabled, a git config option that has no value causes a segfault. Steps to Reproduce GIT_TRACE2=true GIT_TRACE2_CONFIG_PARAMS=status.* git -c status.relativePaths version Expected Result git version 2.46.0 Actual Result zsh: segmentation fault GIT_TRACE2=true This adds checks to prevent the segfault and instead return an empty value. Signed-off-by: Adam Murray <ad@canva.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>