git config: Don't rely on regexec() returning 1 on non-match
commit9e4bbeb95f5c9d046b671070eb35b3aa6f3ec5e6
authorBjörn Steinbrink <B.Steinbrink@gmx.de>
Wed, 5 Dec 2007 15:11:24 +0000 (5 16:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Dec 2007 19:34:44 +0000 (5 11:34 -0800)
tree5a7d16992359ae791413185cd75dc7ab4b326c40
parent21640376a5b3e55557020a4932ba78daffc2d77e
git config: Don't rely on regexec() returning 1 on non-match

Some systems don't return 1 from regexec() when the pattern does not
match (notably HP-UX which returns 20).

Bug identified by Dscho and H.Merijn Brand.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Tested-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-config.c