netdev-linux: Fix strict aliasing warnings.
[openvswitch] / lib / ofp-parse.c
index e30c8a91a2ea1878629265109aaf01af5184774e..f8464b99d7fbde5f96cecb86e1776b8d6679810a 100644 (file)
@@ -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++;
     }
 }