git_config_*: don't assume we are parsing a config file
commitc1867cea90f8e7ee8e1be3fc07a402dde1b2666d
authorJeff King <peff@peff.net>
Thu, 21 Feb 2008 00:00:32 +0000 (20 19:00 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Feb 2008 04:21:43 +0000 (20 20:21 -0800)
tree2b87907a3b44e407605ecd7b36756a302c20de36
parent9a13ba1bed0e573a7c4523c0c8ed8465c9f341bb
git_config_*: don't assume we are parsing a config file

These functions get called by other code, including parsing
config options from the command line. In that case,
config_file_name is NULL, leading to an ugly message or even
a segfault on some implementations of printf.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c