From 31db1ad3aec33e9aa6b4e54b8338e325e76b399d Mon Sep 17 00:00:00 2001 From: oysteini Date: Tue, 11 May 2010 14:20:10 +0000 Subject: [PATCH] Set encoding to NULL when starting. Submitted by: eirikald --- psqldbadm/psql-dbadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psqldbadm/psql-dbadm.c b/psqldbadm/psql-dbadm.c index 6eb9255..a61036f 100644 --- a/psqldbadm/psql-dbadm.c +++ b/psqldbadm/psql-dbadm.c @@ -65,7 +65,7 @@ main(int argc, char **argv) int action = 0, c; char *dbname = NULL, *owner = NULL; char _dbname[1024], _owner[1024]; - char *encoding, _encoding[1024]; + char *encoding = NULL, _encoding[1024]; while ((c = getopt(argc, argv, "hadlu:o:E:")) != -1) { switch (c) {