Be careful, listname can be NULL in global operation mode and not

all printf implementations are as smart as BSD's variant. Instead of
printing "(null)" others just dump core.
This commit is contained in:
Ralf S. Engelschall 2001-01-20 11:19:14 +00:00
parent 0e34ed74d9
commit a333ce43a6

2
main.c
View File

@ -93,7 +93,7 @@ main(int argc, char * argv[])
/* Log a few helpful facts about this Petidomo instance. */
syslog(LOG_DEBUG, "%s starting up; mode=%s, listname=%s, masterconf=%s, approved=%s, ruid=%d, euid=%d, gid=%d, egid=%d",
petidomo_version.v_gnu, mode, listname, masterconfig_path, (g_is_approved) ? "true" : "false",
petidomo_version.v_gnu, mode, (listname != NULL ? listname : "<none>"), masterconfig_path, (g_is_approved) ? "true" : "false",
getuid(), geteuid(), getgid(), getegid());
/* Init Petidomo's internal stuff. */