From: Roy Marples Date: Fri, 5 Mar 2010 15:51:31 +0000 (+0000) Subject: Don't display NULL platforms. X-Git-Tag: v5.2.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b765221a7c1793d79639fda91900a33e3461fd5e;p=thirdparty%2Fdhcpcd.git Don't display NULL platforms. --- diff --git a/if-options.c b/if-options.c index ce4ce174..f8dd58d0 100644 --- a/if-options.c +++ b/if-options.c @@ -798,7 +798,7 @@ read_config(const char *file, VENDORCLASSID_MAX_LEN, "%s-%s:%s-%s:%s%s%s", PACKAGE, VERSION, utn.sysname, utn.release, utn.machine, - platform ? ":" : "", platform); + platform ? ":" : "", platform ? platform : ""); else ifo->vendorclassid[0] = snprintf((char *)ifo->vendorclassid + 1, VENDORCLASSID_MAX_LEN, "%s-%s", PACKAGE, VERSION);