diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-02-15 18:17:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-02-15 18:17:33 +0000 |
commit | 6124c674cea1aceea855b4372d9c417fb576615d (patch) | |
tree | 50bc4cdb1a62284b45514c7d83a013e09a47f92a /src/backend/commands/user.c | |
parent | 16620abe124458ba9799feb01c7d853e0b0a2e5a (diff) | |
download | postgresql-6124c674cea1aceea855b4372d9c417fb576615d.tar.gz postgresql-6124c674cea1aceea855b4372d9c417fb576615d.zip |
Silence gcc warning about uninitialized var.
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 8ac8372693a..3e352be2fcc 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * 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) foreach(item, stmt->listUsers) { Value *v; + if (strcmp(tag, "ALTER GROUP")==0) { /* Get the uid of the proposed user to add. */ @@ -875,7 +876,10 @@ AlterGroup(AlterGroupStmt *stmt, const char * tag) v = lfirst(item); } else + { elog(ERROR, "AlterGroup: unknown tag %s", tag); + v = NULL; /* keep compiler quiet */ + } if (!member(v, newlist)) newlist = lcons(v, newlist); |