From 99b2596d41a04c3be3d858226658f7418162c03a Mon Sep 17 00:00:00 2001
From: Srini Seetharaman <srini.seetharaman@gmail.com>
Date: Wed, 25 Jun 2014 21:24:41 -0700
Subject: [PATCH] Initializing the variable 's' so that the get_desc_stats()
 call does not cause an exceptions when there are no messages

Signed-off-by: Srini Seetharaman <srini.seetharaman@gmail.com>
---
 ryu/lib/ofctl_v1_3.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py
index 4c14e06..c63c4e1 100644
--- a/ryu/lib/ofctl_v1_3.py
+++ b/ryu/lib/ofctl_v1_3.py
@@ -577,6 +577,7 @@ def get_desc_stats(dp, waiters):
     stats = dp.ofproto_parser.OFPDescStatsRequest(dp, 0)
     msgs = []
     send_stats_request(dp, stats, waiters, msgs)
+    s = {}
 
     for msg in msgs:
         stats = msg.body
-- 
1.9.1

