'error' would be used without initialization if 'cnt' was 0. Signed-off-by: Jarno Rajahalme <jrajaha...@nicira.com> --- lib/dpif-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 9270873..90445d1 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2194,7 +2194,7 @@ dp_netdev_output_userspace(struct dp_netdev *dp, struct ofpbuf **packets, const struct nlattr *userdata) { struct dp_netdev_queue *q; - int error; + int error = 0; int i; fat_rwlock_rdlock(&dp->queue_rwlock); -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev