mbsinit: Don't crash for a NULL argument.
[pspp] / ChangeLog
index 68ffd30abb99cb8e446db7365f04d10648190fd1..3382c603366280fe0be9d32c803aa7e5df9f1b1a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-13  Bruno Haible  <bruno@clisp.org>
+
+       mbsinit: Don't crash for a NULL argument.
+       * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
+       * tests/test-mbsinit.c (mbsinit): Check this behaviour.
+
 2011-02-13  Bruno Haible  <bruno@clisp.org>
 
        Don't interfere with a program's definition of __attribute__.