Skip to content

Commit 68a9075

Browse files
committed
Remove redundant check
This was already checked directly above.
1 parent 3e33e1e commit 68a9075

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/pgsql/pgsql.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3410,11 +3410,6 @@ static void php_pgsql_escape_internal(INTERNAL_FUNCTION_PARAMETERS, int escape_l
34103410
RETURN_THROWS();
34113411
}
34123412

3413-
if (pgsql == NULL) {
3414-
php_error_docref(NULL, E_WARNING,"Cannot get pgsql link");
3415-
RETURN_FALSE;
3416-
}
3417-
34183413
if (escape_literal) {
34193414
tmp = PQescapeLiteral(pgsql, from, (size_t)from_len);
34203415
} else {

0 commit comments

Comments
 (0)