diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-06-03 06:17:34 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-06-03 06:17:34 +0000 |
commit | cd3f1bcab0916bf3fabe2351691a58c29fd787db (patch) | |
tree | c4d51eba0774ef559ad8e15ad4de25c2b5b5ab1d | |
parent | 2c7e2851d75bf9c5d35ab472f2f4ec08fc28e59e (diff) |
cc1: warnings being treated as errors
psql.c: In function `HandleSlashCmds':
psql.c:1141: warning: `optarg3' might be used uninitialized in this function
psql.c:1157: warning: `optarg3' might be used uninitialized in this function
-> char *optarg3 = NULL;
-rw-r--r-- | src/bin/psql/psql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 817d350e8a7..ccae6b30c53 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.69 1997/06/02 03:04:50 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.70 1997/06/03 06:17:34 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -1138,7 +1138,7 @@ HandleSlashCmds(PsqlSettings * settings, do_copy(optarg2, settings); else if (strncmp(cmd, "connect ", strlen("connect ")) == 0 || strcmp(cmd, "connect") == 0 /* issue error message */) { - char *optarg3; + char *optarg3 = NULL; int blank_loc2; if (optarg2) { @@ -1154,7 +1154,7 @@ HandleSlashCmds(PsqlSettings * settings, do_connect(optarg2, optarg3, settings); } else { - char *optarg3; + char *optarg3 = NULL; int blank_loc2; if (optarg) { |