Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cdb2api/cdb2api.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static double cdb2_min_tls_ver = 0;

static int _PID; /* ONE-TIME */
static int _MACHINE_ID; /* ONE-TIME */
static char *_ARGV0; /* ONE-TIME */
static char *_ARGV0 = NULL; /* ONE-TIME */
#define DB_TZNAME_DEFAULT "America/New_York"

static pthread_mutex_t cdb2_event_mutex = PTHREAD_MUTEX_INITIALIZER;
Expand Down Expand Up @@ -595,6 +595,8 @@ static char *proc_cmdline_getargv0(void)

char *cdb2_getargv0(void)
{
if (_ARGV0)
return _ARGV0;
#if defined(__APPLE__)
return apple_getargv0();
#elif defined(_LINUX_SOURCE) || defined(_SUN_SOURCE)
Expand Down
Loading