Skip to content

Commit ab6aa40

Browse files
author
Michael Meskes
committed
Applied patch for VPATH builds by Alvaro Herrera <alvherre@commandprompt.com>
Merged dyntest.pgc and dyntest2.pgc. Hopefully fixed the last Coverity reports (finally)
1 parent b563394 commit ab6aa40

File tree

18 files changed

+585
-7999
lines changed

18 files changed

+585
-7999
lines changed

src/interfaces/ecpg/ecpglib/connect.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.32 2006/08/02 13:43:22 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.33 2006/08/13 10:18:29 meskes Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -387,8 +387,9 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
387387
ECPGraise(lineno, ECPG_CONNECT, ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION, realname ? realname : "<DEFAULT>");
388388
if (host)
389389
ECPGfree(host);
390-
if (port)
391-
ECPGfree(port);
390+
/* port not set yet
391+
* if (port)
392+
* ECPGfree(port); */
392393
if (options)
393394
ECPGfree(options);
394395
if (realname)

src/interfaces/ecpg/pgtypeslib/numeric.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/numeric.c,v 1.30 2006/08/09 09:08:31 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/numeric.c,v 1.31 2006/08/13 10:18:30 meskes Exp $ */
22

33
#include "postgres_fe.h"
44
#include <ctype.h>
@@ -1505,8 +1505,7 @@ numericvar_to_double(numeric *var, double *dp)
15051505
return -1;
15061506

15071507
/*
1508-
* strtod seems to not reset errno to 0 in case of success.
1509-
* at least on aome architectures
1508+
* strtod does not reset errno to 0 in case of success.
15101509
*/
15111510
errno = 0;
15121511
val = strtod(tmp, &endptr);

src/interfaces/ecpg/preproc/type.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/type.c,v 1.70 2006/08/09 09:08:32 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/type.c,v 1.71 2006/08/13 10:18:30 meskes Exp $ */
22

33
#include "postgres_fe.h"
44

@@ -249,7 +249,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * type,
249249
ind_name,
250250
type->size,
251251
type->u.element,
252-
(ind_type->type == ECPGt_NO_INDICATOR) ? ind_type : ind_type->u.element,
252+
(ind_type == NULL) ? NULL : ((ind_type->type == ECPGt_NO_INDICATOR) ? ind_type : ind_type->u.element),
253253
NULL, prefix, ind_prefix);
254254
break;
255255
default:

src/interfaces/ecpg/test/compat_informix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subdir = src/interfaces/ecpg/test/compat_informix
22
top_builddir = ../../../../..
33
include $(top_builddir)/src/Makefile.global
4-
include ../Makefile.regress
4+
include $(top_srcdir)/$(subdir)/../Makefile.regress
55

66
# special informix compatiblity switches
77
ECPG += -C INFORMIX

src/interfaces/ecpg/test/complex/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subdir = src/interfaces/ecpg/test/complex
22
top_builddir = ../../../../..
33
include $(top_builddir)/src/Makefile.global
4-
include ../Makefile.regress
4+
include $(top_srcdir)/$(subdir)/../Makefile.regress
55

66

77
TESTS = test1 test1.c \

src/interfaces/ecpg/test/connect/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subdir = src/interfaces/ecpg/test/connect
22
top_builddir = ../../../../..
33
include $(top_builddir)/src/Makefile.global
4-
include ../Makefile.regress
4+
include $(top_srcdir)/$(subdir)/../Makefile.regress
55

66
# port number for temp-installation test postmaster
77
# this is also defined in ../Makefile

src/interfaces/ecpg/test/errors/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subdir = src/interfaces/ecpg/test/errors
22
top_builddir = ../../../../..
33
include $(top_builddir)/src/Makefile.global
4-
include ../Makefile.regress
4+
include $(top_srcdir)/$(subdir)/../Makefile.regress
55

66

77
TESTS = init init.c

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy