diff options
author | Michael Meskes <meskes@postgresql.org> | 2006-06-21 11:38:26 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2006-06-21 11:38:26 +0000 |
commit | ca1d26338b27db6a318833695a1fa415d37e86f8 (patch) | |
tree | e32dde7c55ef20064308790d6e79c491125c4563 /src/interfaces/ecpg/ecpglib/misc.c | |
parent | 08f197391135951f7e60d65457103307dea89f0c (diff) |
Added some more coverity report patches send in by Martijn van Oosterhout <kleptog@svana.org>.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/misc.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c index ff38bfab799..76824e1135b 100644 --- a/src/interfaces/ecpg/ecpglib/misc.c +++ b/src/interfaces/ecpg/ecpglib/misc.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.26 2005/10/15 02:49:47 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.26.2.1 2006/06/21 11:38:26 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -179,7 +179,7 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction) if (!ECPGinit(con, connection_name, lineno)) return (false); - ECPGlog("ECPGtrans line %d action = %s connection = %s\n", lineno, transaction, con->name); + ECPGlog("ECPGtrans line %d action = %s connection = %s\n", lineno, transaction, con ? con->name : "(nil)"); /* if we have no connection we just simulate the command */ if (con && con->connection) |