]> git.wh0rd.org Git - nano.git/commitdiff
add comment
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 8 Apr 2005 20:06:08 +0000 (20:06 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 8 Apr 2005 20:06:08 +0000 (20:06 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2455 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/utils.c

index 86d55770b0f18adee4aa68b1be09f6f571fcdaa3..4d38464883e093d7ed55bb0c11c8f5387c029086 100644 (file)
 
 #ifdef HAVE_REGEX_H
 #ifdef BROKEN_REGEXEC
+/* Work around a potential segfault in glibc 2.2.3's regexec(). */
 int safe_regexec(const regex_t *preg, const char *string, size_t nmatch,
        regmatch_t pmatch[], int eflags)
 {
     if (string != NULL && *string != '\0')
        return regexec(preg, string, nmatch, pmatch, eflags);
+
     return REG_NOMATCH;
 }
 #endif