udhcp: fix use of trim() in udhcp_str2optset()
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 14 May 2018 04:29:15 +0000 (14:29 +1000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 14 May 2018 08:46:00 +0000 (10:46 +0200)
commit43b9235f66aa56bb884c13443d9e7d56003b5c36
treefaaf393bf9a5d1328b159ee1e123fd99e1ff2b98
parent254e47372f77ea1070be6dbb44b5c45770115a07
udhcp: fix use of trim() in udhcp_str2optset()

trim() modifies the string in place if needed and returns a pointer to
the end of the resulting string. Update udhcp_str2optset() so it no
longer sets the value of 'val' to the return value of trim().

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/common.c