Commit cd3f1bca authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

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;
parent 2c7e2851
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment