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

Commit6124c67

Browse files
committed
Silence gcc warning about uninitialized var.
1 parent16620ab commit6124c67

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/commands/user.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: user.c,v 1.49 2000/01/26 05:56:13 momjian Exp $
9+
* $Id: user.c,v 1.50 2000/02/15 18:17:33 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -855,6 +855,7 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag)
855855
foreach(item,stmt->listUsers)
856856
{
857857
Value*v;
858+
858859
if (strcmp(tag,"ALTER GROUP")==0)
859860
{
860861
/* Get the uid of the proposed user to add. */
@@ -875,7 +876,10 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag)
875876
v=lfirst(item);
876877
}
877878
else
879+
{
878880
elog(ERROR,"AlterGroup: unknown tag %s",tag);
881+
v=NULL;/* keep compiler quiet */
882+
}
879883

880884
if (!member(v,newlist))
881885
newlist=lcons(v,newlist);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp