Skip to content

Commit 6124c67

Browse files
committed
Silence gcc warning about uninitialized var.
1 parent 16620ab commit 6124c67

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy