mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Check for out of memory when allocating sqlca.
Patch by Michael Paquier
This commit is contained in:
@ -1032,6 +1032,8 @@ void
|
||||
ECPG_informix_reset_sqlca(void)
|
||||
{
|
||||
struct sqlca_t *sqlca = ECPGget_sqlca();
|
||||
if (sqlca == NULL)
|
||||
return;
|
||||
|
||||
memcpy((char *) sqlca, (char *) &sqlca_init, sizeof(struct sqlca_t));
|
||||
}
|
||||
|
Reference in New Issue
Block a user