diff options
| author | Yasuo Ohgaki <yohgaki@php.net> | 2002-10-02 06:22:52 +0000 |
|---|---|---|
| committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-10-02 06:22:52 +0000 |
| commit | 520486e8b148af85bf11fa5e284f1a0e37e69ab4 (patch) | |
| tree | e1c16b37f62105a71466fafbcf0b6f7855379084 /ext/pgsql/pgsql.c | |
| parent | e1dd35bddb25e4f88567c543d96418fe985afbd4 (diff) | |
| download | php-git-520486e8b148af85bf11fa5e284f1a0e37e69ab4.tar.gz | |
Clean up a little.
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 3b3990917d..37137d258c 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2734,11 +2734,9 @@ PHP_FUNCTION(pg_unescape_bytea) 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); } /* }}} */ |
