Skip to content
Snippets Groups Projects
Commit 6124c674 authored by Tom Lane's avatar Tom Lane
Browse files

Silence gcc warning about uninitialized var.

parent 16620abe
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: user.c,v 1.49 2000/01/26 05:56:13 momjian Exp $ * $Id: user.c,v 1.50 2000/02/15 18:17:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -855,6 +855,7 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag) ...@@ -855,6 +855,7 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag)
foreach(item, stmt->listUsers) foreach(item, stmt->listUsers)
{ {
Value *v; Value *v;
if (strcmp(tag, "ALTER GROUP")==0) if (strcmp(tag, "ALTER GROUP")==0)
{ {
/* Get the uid of the proposed user to add. */ /* Get the uid of the proposed user to add. */
...@@ -875,7 +876,10 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag) ...@@ -875,7 +876,10 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag)
v = lfirst(item); v = lfirst(item);
} }
else else
{
elog(ERROR, "AlterGroup: unknown tag %s", tag); elog(ERROR, "AlterGroup: unknown tag %s", tag);
v = NULL; /* keep compiler quiet */
}
if (!member(v, newlist)) if (!member(v, newlist))
newlist = lcons(v, newlist); newlist = lcons(v, newlist);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment