cvs: php4 /ext/pgsql pgsql.c
| From: | Yasuo Ohgaki | Date: | Wed, 02 Oct 2002 06:22:52 +0000 |
| Subject: | cvs: php4 /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14396@lists.php.net to get a copy of this message | ||
yohgaki Wed Oct 2 02:22:52 2002 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
Clean up a little.
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.228 php4/ext/pgsql/pgsql.c:1.229
--- php4/ext/pgsql/pgsql.c:1.228 Wed Oct 2 00:03:21 2002
+++ php4/ext/pgsql/pgsql.c Wed Oct 2 02:22:52 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.228 2002/10/02 04:03:21 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.229 2002/10/02 06:22:52 yohgaki Exp $ */
#include <stdlib.h>
@@ -2734,11 +2734,9 @@
to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, from_len);
if (!to) {
- RETVAL_FALSE;
- }
- else {
- RETVAL_STRINGL(to, to_len-1, 1); /* to_len includes addtional '\0' */
+ RETURN_FALSE;
}
+ RETVAL_STRINGL(to, to_len-1, 1); /* to_len includes addtional '\0' */
free(to);
}
/* }}} */