1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Remove useless empty string initializations

This coding style probably stems from the days of shell scripts.

Reviewed-by: Aleksandr Parfenov <a.parfenov@postgrespro.ru>
This commit is contained in:
Peter Eisentraut
2017-08-30 22:28:36 -04:00
parent 9361bc347c
commit 8e67380126
2 changed files with 39 additions and 37 deletions

View File

@@ -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;