X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fofp-parse.c;h=f8464b99d7fbde5f96cecb86e1776b8d6679810a;hb=782e6111668f5f4bccec2dc9328dc3a83f548fce;hp=e30c8a91a2ea1878629265109aaf01af5184774e;hpb=53ddd40ab56b6c31a2ced6b984c33ae27f458101;p=openvswitch diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index e30c8a91..f8464b99 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -200,6 +200,7 @@ str_to_action(char *str, struct ofpbuf *b) char *pos; pos = str; + n_actions = 0; for (;;) { char *act, *arg; size_t actlen; @@ -414,6 +415,7 @@ str_to_action(char *str, struct ofpbuf *b) } else { ovs_fatal(0, "Unknown action: %s", act); } + n_actions++; } }