Skip to content

Commit 08342ff

Browse files
committed
Review nits
1 parent 7c1705f commit 08342ff

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static bool do_fetch(pdo_stmt_t *stmt, zval *return_value, enum pdo_fetch_type h
785785
}
786786
} else {
787787
if (UNEXPECTED(object_init_ex(return_value, ce) != SUCCESS)) {
788-
return false;
788+
goto in_fetch_error;
789789
}
790790
if (ce->constructor && (flags & PDO_FETCH_PROPS_LATE)) {
791791
bool failed = pdo_call_fetch_object_constructor(ce->constructor, ctor_arguments, return_value);
@@ -940,12 +940,11 @@ static bool do_fetch(pdo_stmt_t *stmt, zval *return_value, enum pdo_fetch_type h
940940
efree(fetch_function_params);
941941
}
942942
stmt->in_fetch = false;
943-
944943
return true;
945944

946-
in_fetch_error:
947-
stmt->in_fetch = false;
948-
return false;
945+
in_fetch_error:
946+
stmt->in_fetch = false;
947+
return false;
949948
}
950949
/* }}} */
951950

0 commit comments

Comments
 (0)