From: Roy Marples Date: Thu, 7 Jan 2016 23:37:14 +0000 (+0000) Subject: Reduce mallocs when printing pidfile X-Git-Tag: v6.10.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1642d52cba06d80691d8dd97fb994e9f0ea8916;p=thirdparty%2Fdhcpcd.git Reduce mallocs when printing pidfile --- diff --git a/if-options.c b/if-options.c index ddf6aaf9..de0c3ab7 100644 --- a/if-options.c +++ b/if-options.c @@ -2168,7 +2168,7 @@ read_config(struct dhcpcd_ctx *ctx, buflen = 0; /* Parse our embedded options file */ - if (ifname == NULL) { + if (ifname == NULL && !(ctx->options & DHCPCD_PRINT_PIDFILE)) { /* Space for initial estimates */ #if defined(INET) && defined(INITDEFINES) ifo->dhcp_override =