mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
getdata: initialize memory
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
12271887db
commit
d02b684133
1 changed files with 3 additions and 0 deletions
|
|
@ -120,6 +120,9 @@ int parse_leases(void)
|
||||||
touches =
|
touches =
|
||||||
safe_malloc((size_t) sizeof(long int) * touchesmallocsize);
|
safe_malloc((size_t) sizeof(long int) * touchesmallocsize);
|
||||||
|
|
||||||
|
memset(leases, 0, sizeof(long int) * leasesmallocsize);
|
||||||
|
memset(touches, 0, sizeof(long int) * touchesmallocsize);
|
||||||
|
|
||||||
line = safe_malloc(sizeof(long int) * MAXLEN);
|
line = safe_malloc(sizeof(long int) * MAXLEN);
|
||||||
ipstring = safe_malloc(sizeof(long int) * MAXLEN);
|
ipstring = safe_malloc(sizeof(long int) * MAXLEN);
|
||||||
if (config.output_format[0] == 'X') {
|
if (config.output_format[0] == 'X') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue