From: Johannes Schindelin Date: Wed, 05 Dec 2007 15:14:11 GMT Subject: Re: [PATCH] git config: Don't rely on regexec() returning 1 on non-match Message-ID: In-Reply-To: <1196867484-22188-1-git-send-email-B.Steinbrink@gmx.de> Hi, On Wed, 5 Dec 2007, Björn Steinbrink wrote: > Some systems don't return 1 from regexec() when the pattern does not > match (notably HP-UX which returns 20). Fortunately, there's the > REG_NOMATCH constant, which we can use as the expected return value > and test for that instead of "1 XOR retval". > > Bug identified by Dscho and H.Merijn Brand. > > Signed-off-by: Björn Steinbrink > Tested-by: H.Merijn Brand > Cc: Johannes Schindelin ACK Ciao, Dscho