[svn-commits] moy: branch moy/webrtc-11 r409435 - /team/moy/webrtc-11/res/res_http_websocket.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 3 23:10:39 CST 2014


Author: moy
Date: Mon Mar  3 23:10:32 2014
New Revision: 409435

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=409435
Log:
Address final comments from review #3248

* Do not initialize local variables in declaration since those are initialized just below on first use

Modified:
    team/moy/webrtc-11/res/res_http_websocket.c

Modified: team/moy/webrtc-11/res/res_http_websocket.c
URL: http://svnview.digium.com/svn/asterisk/team/moy/webrtc-11/res/res_http_websocket.c?view=diff&rev=409435&r1=409434&r2=409435
==============================================================================
--- team/moy/webrtc-11/res/res_http_websocket.c (original)
+++ team/moy/webrtc-11/res/res_http_websocket.c Mon Mar  3 23:10:32 2014
@@ -317,8 +317,8 @@
  */
 static inline int ws_safe_read(struct ast_websocket *session, char *buf, int len, enum ast_websocket_opcode *opcode)
 {
-	int sanity = 0;
-	size_t rlen = 0;
+	int sanity;
+	size_t rlen;
 	int xlen = len;
 	char *rbuf = buf;
 	for (sanity = 10; sanity; sanity--) {




More information about the svn-commits mailing list