aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/odp-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c
index ffb486ec..110b60be 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -434,7 +434,7 @@ parse_odp_action(const char *s, const struct shash *port_names,
for (;;) {
int retval;
- s += strspn(s, delimiters);
+ n += strspn(s + n, delimiters);
if (s[n] == ')') {
break;
}
@@ -444,7 +444,6 @@ parse_odp_action(const char *s, const struct shash *port_names,
return retval;
}
n += retval;
-
}
nl_msg_end_nested(actions, actions_ofs);
nl_msg_end_nested(actions, sample_ofs);