]> granicus.if.org Git - postgresql/commitdiff
Fix bug I introduced while cleaning up pg_dump -t/-n patch.
authorBruce Momjian <bruce@momjian.us>
Tue, 1 Aug 2006 21:05:00 +0000 (21:05 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 1 Aug 2006 21:05:00 +0000 (21:05 +0000)
src/bin/pg_dump/pg_dump.c

index bf2874f3df8bad8a2d06f85f6e44d5ff01aa1163..5e3834a6cdcad1a31f44619f0b0c494c6f0556af 100644 (file)
@@ -12,7 +12,7 @@
  *     by PostgreSQL
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.443 2006/08/01 18:05:04 momjian Exp $
+ *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.444 2006/08/01 21:05:00 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -193,7 +193,7 @@ main(int argc, char **argv)
 {
        PQExpBuffer query = createPQExpBuffer();
        PGresult   *res;
-       objnameArg *this_obj_name = NULL;
+       objnameArg *this_obj_name, *schemaList_tail = NULL, *tableList_tail = NULL;
        int                     c;
        const char *filename = NULL;
        const char *format = "p";
@@ -301,8 +301,6 @@ main(int argc, char **argv)
        while ((c = getopt_long(argc, argv, "abcCdDE:f:F:h:in:N:oOp:RsS:t:T:uU:vWxX:Z:",
                                                        long_options, &optindex)) != -1)
        {
-               objnameArg *schemaList_tail = NULL, *tableList_tail = NULL;
-
                switch (c)
                {
                        case 'a':                       /* Dump data only */