ecpg: check return value of replace_variables()

The function returns false if it fails to allocate memory, so
make sure to check the return value in callsites.

Author: Aleksander Alekseev <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: 
https://postgr.es/m/caj7c6tnpru8zxgdfn3pygy1tzo0bgszx+kkqw0z7zt3heyc...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0d82163958005b2ba56f8c58311888d142fa4509

Modified Files
--------------
src/interfaces/ecpg/ecpglib/prepare.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

Reply via email to