summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-22 15:47:07 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-22 15:47:07 +0100
commit148910c285161097b44cd5df165c3bd19e21ae33 (patch)
tree87af5b64bf5f45bdafdf8fd1bcba6dae6592aaa7 /runtime
parente6aaf1254404661c59504dab264a1140e9e7b2bc (diff)
downloadrsyslog-148910c285161097b44cd5df165c3bd19e21ae33.tar.gz
rsyslog-148910c285161097b44cd5df165c3bd19e21ae33.tar.xz
rsyslog-148910c285161097b44cd5df165c3bd19e21ae33.zip
bugfix(minor): BSD_SO_COMPAT query function had some global vars not properly initialized.
However, in practice the loader initializes them with zero, the desired value, so there were no actual issue in almost all cases.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/net.c b/runtime/net.c
index e91c8a7f..fe6eef5b 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -1010,8 +1010,8 @@ static int
should_use_so_bsdcompat(void)
{
#ifndef OS_BSD
- static int init_done;
- static int so_bsdcompat_is_obsolete;
+ static int init_done = 0;
+ static int so_bsdcompat_is_obsolete = 0;
if (!init_done) {
struct utsname myutsname;