Commit 6ec4520a authored by Bruce Momjian's avatar Bruce Momjian

Supress warning about zero-length format string.

parent 7ee3c351
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* *
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.47 2004/08/08 06:44:33 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.48 2004/08/08 06:58:00 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -858,9 +858,11 @@ runPgDump(const char *dbname) ...@@ -858,9 +858,11 @@ runPgDump(const char *dbname)
#ifndef WIN32 #ifndef WIN32
if (*p == '\'') if (*p == '\'')
appendPQExpBuffer(cmd, "'\"'\"'"); appendPQExpBuffer(cmd, "'\"'\"'");
else #else
if (*p == '"')
appendPQExpBuffer(cmd, "\\\"");
#endif #endif
/* not needed on Win32 */ else
appendPQExpBufferChar(cmd, *p); appendPQExpBufferChar(cmd, *p);
} }
...@@ -868,10 +870,8 @@ runPgDump(const char *dbname) ...@@ -868,10 +870,8 @@ runPgDump(const char *dbname)
appendPQExpBufferChar(cmd, '\''); appendPQExpBufferChar(cmd, '\'');
#else #else
appendPQExpBufferChar(cmd, '"'); appendPQExpBufferChar(cmd, '"');
appendPQExpBuffer(cmd, SYSTEMQUOTE);
#endif #endif
if (strlen(SYSTEMQUOTE) > 0)
appendPQExpBuffer(cmd, SYSTEMQUOTE);
if (verbose) if (verbose)
fprintf(stderr, _("%s: running \"%s\"\n"), progname, cmd->data); fprintf(stderr, _("%s: running \"%s\"\n"), progname, cmd->data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment