* gettext-8-prg.c: Include <assert.h>.
(main): Check return value of 'gettext'.
+2014-12-09 Daiki Ueno <ueno@gnu.org>
+
+ * gettext-8-prg.c: Include <assert.h>.
+ (main): Check return value of 'gettext'.
+
2014-12-09 Daiki Ueno <ueno@gnu.org>
* gettext-8-prg.c (main): Release allocated memory. Spotted by
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <assert.h>
#if HAVE_GETRLIMIT && HAVE_SETRLIMIT
# include <sys/types.h>
translated = gettext (msg);
free (msg);
- free (translated);
+ assert (translated != NULL);
return 0;
}