Code

config: avoid segfault when parsing command-line config
authorJeff King <peff@peff.net>
Thu, 9 Jun 2011 15:52:43 +0000 (11:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2011 18:24:51 +0000 (11:24 -0700)
commitc5d6350bdc8d0d8bd4bd1aa0273313e71cd548f6
tree1a2a1f3d095ba519e1f3ef019d8cce217117fafb
parent1c2c9bee1bad9a4133a934d04c32b033cc16c8aa
config: avoid segfault when parsing command-line config

We already check for an empty key on the left side of an
equals, but we would segfault if there was no content at
all.

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