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:
Sami Kerola 2011-06-21 22:34:42 +02:00
parent 55ab31e482
commit dd5b77b62c

View file

@ -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;
}