summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index fbf9c68..b7c04da 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -489,9 +489,10 @@ int FAST_FUNC udhcp_str2optset(const char *const_str, void *arg, const struct dh
int length;
char *val;
- if (optflag->flags == OPTION_BIN)
- val = trim(strtok(NULL, "")); /* do not split "'q w e'" */
- else
+ if (optflag->flags == OPTION_BIN) {
+ val = strtok(NULL, ""); /* do not split "'q w e'" */
+ trim(val);
+ } else
val = strtok(NULL, ", \t");
if (!val)
break;