diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-30 22:28:36 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-09-08 12:37:05 -0400 |
commit | 8e673801262c66af4a54837f63ff596407835c20 (patch) | |
tree | 39df091b1a7aba0e48979bde028a0f769f0aac54 /src/bin/pg_basebackup/pg_basebackup.c | |
parent | 9361bc347c85b685280fad742c519234d6e42bee (diff) | |
download | postgresql-8e673801262c66af4a54837f63ff596407835c20.tar.gz postgresql-8e673801262c66af4a54837f63ff596407835c20.zip |
Remove useless empty string initializations
This coding style probably stems from the days of shell scripts.
Reviewed-by: Aleksandr Parfenov <a.parfenov@postgrespro.ru>
Diffstat (limited to 'src/bin/pg_basebackup/pg_basebackup.c')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index dfb9b5ddcbc..51509d150e5 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -76,7 +76,7 @@ typedef enum /* Global options */ static char *basedir = NULL; static TablespaceList tablespace_dirs = {NULL, NULL}; -static char *xlog_dir = ""; +static char *xlog_dir = NULL; static char format = 'p'; /* p(lain)/t(ar) */ static char *label = "pg_basebackup base backup"; static bool noclean = false; @@ -2347,7 +2347,7 @@ main(int argc, char **argv) temp_replication_slot = false; } - if (strcmp(xlog_dir, "") != 0) + if (xlog_dir) { if (format != 'p') { @@ -2398,7 +2398,7 @@ main(int argc, char **argv) } /* Create pg_wal symlink, if required */ - if (strcmp(xlog_dir, "") != 0) + if (xlog_dir) { char *linkloc; |