Skip to content

Commit 037c526

Browse files
author
Daniel Farina
committed
Initialize some global variables to non-null values
Fixes no known bug in particular, but it is thought that this program has no need to make a NULL pointer for these values at any time, so just avoid making these values NULLable. Signed-off-by: Daniel Farina <[email protected]>
1 parent 8d2d7d2 commit 037c526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pg_logfebe.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ PG_MODULE_MAGIC;
6060
#define PROTO_VERSION ("PG-" PG_VERSION "/logfebe-1")
6161

6262
/* GUC-configured destination of the log pages */
63-
static char *logUnixSocketPath = NULL;
64-
static char *ident = NULL;
63+
static char *logUnixSocketPath = "";
64+
static char *ident = "";
6565

6666
/* Old hook storage for loading/unloading of the extension */
6767
static emit_log_hook_type prev_emit_log_hook = NULL;

0 commit comments

Comments
 (0)