Adds some missing error handling to PGTYPESnumeric_div() in ecpg's

Neil Conway <neilc@samurai.com>

Commit: 555f5139e080b12ec0769bba435aba03be7d5bde
Author: Neil Conway <neilc@samurai.com>
Date: 2005-07-01T05:13:58Z
Releases: 8.1.0
Adds some missing error handling to PGTYPESnumeric_div() in ecpg's
pgtypeslib: (1) we need to check the return value of sub_abs() (2) we
need to check the return value of 4 calls to digitbuf_alloc().

Per Coverity static analysis performed by EnterpriseDB.

Files

PathChange+/−
src/interfaces/ecpg/pgtypeslib/numeric.c modified +29 −7