[ovs-dev] [PATCH 5/5] lib/dpif-netdev.c: Silence a compiler warning.
Jarno Rajahalme
jrajahalme at nicira.com
Sat Jul 19 04:05:52 UTC 2014
'error' would be used without initialization if 'cnt' was 0.
Signed-off-by: Jarno Rajahalme <jrajahalme at 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
More information about the dev
mailing list