From 68a907569c0d0406ad6e11017ccbe98ecc1f1405 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 21 Sep 2020 15:59:44 +0200 Subject: Remove redundant check This was already checked directly above. --- ext/pgsql/pgsql.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ext/pgsql/pgsql.c') diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 0112bcc7b6..779c1f444b 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3410,11 +3410,6 @@ static void php_pgsql_escape_internal(INTERNAL_FUNCTION_PARAMETERS, int escape_l RETURN_THROWS(); } - if (pgsql == NULL) { - php_error_docref(NULL, E_WARNING,"Cannot get pgsql link"); - RETURN_FALSE; - } - if (escape_literal) { tmp = PQescapeLiteral(pgsql, from, (size_t)from_len); } else { -- cgit v1.2.1