Re: another gnulib update
Eric Blake <[email protected]>
| Newsgroups | gmane.comp.gnu.m4.patches |
|---|---|
| Message-ID | <[email protected]> |
Eric Blake <ebb9 <at> byu.net> writes: > > Gnulib just enhanced <string.h> to guarantee GNU properties, obsoleting several > minor headers in the process. And another update detected that we used raw strdup without checking for failure. 2007-01-31 Eric Blake <[email protected]> * m4/resyntax.c (m4_regexp_syntax_encode): Detect allocation failure. Index: m4/resyntax.c =================================================================== RCS file: /sources/m4/m4/m4/resyntax.c,v retrieving revision 1.3 diff -u -r1.3 resyntax.c --- m4/resyntax.c 14 Nov 2006 19:40:12 -0000 1.3 +++ m4/resyntax.c 1 Feb 2007 05:41:25 -0000 @@ -1,5 +1,5 @@ /* GNU m4 -- A simple macro processor - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -86,7 +86,7 @@ if (!spec) return RE_SYNTAX_EMACS; - canonical = strdup (spec); + canonical = xstrdup (spec); /* Canonicalise SPEC. */ for (p = canonical; *p != '\0'; ++p)