]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Initialize recvmbox size for undefined netconn type, to supress
authorIvan Delamer <delamer@inicotech.com>
Fri, 12 Aug 2011 15:04:29 +0000 (09:04 -0600)
committerIvan Delamer <delamer@inicotech.com>
Fri, 12 Aug 2011 15:04:29 +0000 (09:04 -0600)
compiler warning.

Change-Id: I14c3f1786a8ca3513b5d4cf375c4951e4c09ebd6

src/api/api_msg.c

index 9d0895ac104858081126061dc88a8c9992ff2ef7..54fbabcf70907da4dc55d28b99afa0e2c39d692b 100644 (file)
@@ -601,6 +601,7 @@ netconn_alloc(enum netconn_type t, netconn_callback callback)
 #endif /* LWIP_TCP */
   default:
     LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0);
+    size = 0;
     break;
   }
 #endif