cvs: php4 /ext/gettext gettext.c
| From: | Yasuo Ohgaki | Date: | Wed, 07 Aug 2002 11:50:49 +0000 |
| Subject: | cvs: php4 /ext/gettext gettext.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13185@lists.php.net to get a copy of this message | ||
yohgaki Wed Aug 7 07:50:49 2002 EDT
Modified files:
/php4/ext/gettext gettext.c
Log:
Fixed crash. Patch by <kilbi@rad.rwth-aachen.de>
Index: php4/ext/gettext/gettext.c
diff -u php4/ext/gettext/gettext.c:1.38 php4/ext/gettext/gettext.c:1.39
--- php4/ext/gettext/gettext.c:1.38 Sat Dec 15 09:22:59 2001
+++ php4/ext/gettext/gettext.c Wed Aug 7 07:50:49 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gettext.c,v 1.38 2001/12/15 14:22:59 hholzgra Exp $ */
+/* $Id: gettext.c,v 1.39 2002/08/07 11:50:49 yohgaki Exp $ */
#include <stdio.h>
#ifdef HAVE_CONFIG_H
@@ -291,8 +291,11 @@
retval = bind_textdomain_codeset(Z_STRVAL_PP(domain), Z_STRVAL_PP(codeset));
+ if (!retval) {
+ RETURN_FALSE;
+ }
RETURN_STRING(retval, 1);
- }
+ }
}
/* }}} */
#endif