From 7b1885bf989781b12bda847b98c89476efb894c9 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 2 Jul 2003 07:57:36 +0000 Subject: Fixed initialization bug and added postgres_fe.h to pgtypeslib. --- src/interfaces/ecpg/compatlib/informix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/interfaces/ecpg/compatlib/informix.c') diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c index 889faf54409..157809de22f 100644 --- a/src/interfaces/ecpg/compatlib/informix.c +++ b/src/interfaces/ecpg/compatlib/informix.c @@ -287,7 +287,10 @@ int dectoasc(Decimal *np, char *cp, int len, int right) { char *str; - Numeric *nres; + Numeric *nres = PGTYPESnumeric_new(); + + if (nres == NULL) + return -1211; if (PGTYPESnumeric_from_decimal(np, nres) != 0) return -1211; -- cgit v1.2.3