From 9ffd42317b5a53c2236268808e34c90601f286c1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 21 May 2006 18:30:35 +0000 Subject: Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessary memset, collate variable declarations... --- networking/udhcp/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/udhcp/script.c') diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c index b6b0e0d59..2a4732104 100644 --- a/networking/udhcp/script.c +++ b/networking/udhcp/script.c @@ -159,7 +159,7 @@ static char **fill_envp(struct dhcpMessage *packet) if (!(over & SNAME_FIELD) && packet->sname[0]) num_options++; } - envp = xcalloc(sizeof(char *), num_options + 5); + envp = xzalloc(sizeof(char *) * (num_options + 5)); j = 0; asprintf(&envp[j++], "interface=%s", client_config.interface); asprintf(&envp[j++], "%s=%s", "PATH", -- cgit v1.2.3