From d2e7afe54aa8cdcfa2a8f2a3e1815b127c0c2c75 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 7 Aug 2009 16:47:53 +0000 Subject: [PATCH] Remove unused ecpg variable. --- src/interfaces/ecpg/ecpglib/data.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c index 3fef207017..9f4d3a86b3 100644 --- a/src/interfaces/ecpg/ecpglib/data.c +++ b/src/interfaces/ecpg/ecpglib/data.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.43 2009/08/07 10:51:20 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.44 2009/08/07 16:47:53 momjian Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -396,8 +396,6 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno, char *str = (char *) ((long) var + offset * act_tuple); if (varcharsize == 0 || varcharsize > size) { - char *last; - strncpy(str, pval, size + 1); /* do the rtrim() */ if (type == ECPGt_string) -- 2.40.0