mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
getdata.c: initialize variables to have safe values
Primarily to get rid of following warning. getdata.c:63:26: warning: 'macstring' may be used uninitialized in this function getdata.c:66:20: warning: 'macaddr_p' may be used uninitialized in this function Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
e219f3f722
commit
faf892114d
1 changed files with 2 additions and 2 deletions
|
|
@ -60,10 +60,10 @@ extern char *malloc();
|
|||
int parse_leases(void)
|
||||
{
|
||||
FILE *dhcpd_leases;
|
||||
char *line, *ipstring, *macstring;
|
||||
char *line, *ipstring, *macstring = NULL;
|
||||
struct in_addr inp;
|
||||
struct stat lease_file_stats;
|
||||
struct macaddr_t *macaddr_p;
|
||||
struct macaddr_t *macaddr_p = NULL;
|
||||
unsigned long leasesmallocsize;
|
||||
unsigned long touchesmallocsize;
|
||||
unsigned long backupsmallocsize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue