]> granicus.if.org Git - php/commitdiff
Clean up a little.
authorYasuo Ohgaki <yohgaki@php.net>
Wed, 2 Oct 2002 06:22:52 +0000 (06:22 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Wed, 2 Oct 2002 06:22:52 +0000 (06:22 +0000)
ext/pgsql/pgsql.c

index 3b3990917d9cfd904513b4ce34e31136689f7fe7..37137d258cef2a4e29f59217bd3f7ee4938d7902 100644 (file)
@@ -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);
 }
 /* }}} */