1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Added some more coverity report patches send in by Joachim Wieland <joe@mcknight.de>.

This commit is contained in:
Michael Meskes
2006-06-26 09:20:09 +00:00
parent bc28f58b8f
commit ea9ec780ed
3 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.45 2006/06/25 01:45:32 momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.46 2006/06/26 09:20:09 meskes Exp $ */
#include <stdlib.h>
#include <string.h>
@ -417,6 +417,7 @@ dectoint(decimal *np, int *ip)
}
ret = PGTYPESnumeric_to_int(nres, ip);
PGTYPESnumeric_free(nres);
if (ret == PGTYPES_NUM_OVERFLOW)
ret = ECPG_INFORMIX_NUM_OVERFLOW;