mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 07:47:00 +00:00
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 <kerolasa@iki.fi>
This commit is contained in:
parent
55ab31e482
commit
dd5b77b62c
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue