Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd3f1bc

Browse files
committed
cc1: warnings being treated as errors
psql.c: In function `HandleSlashCmds':psql.c:1141: warning: `optarg3' might be used uninitialized in this functionpsql.c:1157: warning: `optarg3' might be used uninitialized in this function-> char *optarg3 = NULL;
1 parent2c7e285 commitcd3f1bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/psql/psql.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.69 1997/06/02 03:04:50 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.70 1997/06/03 06:17:34 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1138,7 +1138,7 @@ HandleSlashCmds(PsqlSettings * settings,
11381138
do_copy(optarg2,settings);
11391139
elseif (strncmp(cmd,"connect ",strlen("connect "))==0||
11401140
strcmp(cmd,"connect")==0/* issue error message */) {
1141-
char*optarg3;
1141+
char*optarg3=NULL;
11421142
intblank_loc2;
11431143

11441144
if (optarg2) {
@@ -1154,7 +1154,7 @@ HandleSlashCmds(PsqlSettings * settings,
11541154
do_connect(optarg2,optarg3,settings);
11551155
}
11561156
else {
1157-
char*optarg3;
1157+
char*optarg3=NULL;
11581158
intblank_loc2;
11591159

11601160
if (optarg) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp