From dd5b77b62c2f2132392af4f5bacb551546cb2c5c Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Tue, 21 Jun 2011 22:34:42 +0200 Subject: [PATCH] prepare_memory bug: initialization missing The lack of initialization may have cause unexpected outputs to some users some times. That sort of behavior is also known by name a bug. Signed-off-by: Sami Kerola --- src/dhcpd-pools.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dhcpd-pools.c b/src/dhcpd-pools.c index 232ed94..cf03db6 100644 --- a/src/dhcpd-pools.c +++ b/src/dhcpd-pools.c @@ -218,6 +218,9 @@ int prepare_memory() /* First shared network entry is all networks */ shared_networks->name = safe_strdup("All networks"); + shared_networks->used = 0; + shared_networks->touched = 0; + shared_networks->backups = 0; return 0; } -- 1.7.10.4