]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix asprintf return value.
authorBruno Haible <bruno@clisp.org>
Wed, 2 May 2001 12:10:23 +0000 (12:10 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 2 May 2001 12:10:23 +0000 (12:10 +0000)
lib/ChangeLog
lib/vasprintf.c

index 3aea31995de090ff095a855cace5374e8e6c17a3..265db3969f68fda77e5e01f874af21e914378e29 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-01  Bruno Haible  <haible@clisp.cons.org>
+
+       * vasprintf.c (int_vasprintf): Upon allocation failure, return -1,
+       not 0, to be consistent with glibc documentation.
+
 2001-05-02  Bruno Haible  <haible@clisp.cons.org>
 
        * linebreak.c (iconv_string_keeping_offsets): Work around a glibc-2.1
index f5b28f405dafac09ba2341c29b96f2d1c94cd097..1c2a085d09319707fa7898df25b4669d8296083b 100644 (file)
@@ -123,7 +123,7 @@ int_vasprintf (result, format, args)
   if (*result != NULL)
     return vsprintf (*result, format, *args);
   else
-    return 0;
+    return -1;
 }
 
 int