Initialize 'data' with null

This commit is contained in:
sta 2015-05-08 15:52:13 +09:00
parent d0dc29d05d
commit cffd94e9c5
2 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ namespace WebSocketSharp.Server
if (message == null || message.Length == 0)
return Broadping ();
byte[] data;
byte[] data = null;
var msg = _state.CheckIfStart () ?? WebSocket.CheckPingParameter (message, out data);
if (msg != null) {
_logger.Error (msg);

View File

@ -571,7 +571,7 @@ namespace WebSocketSharp.Server
if (message == null || message.Length == 0)
return Broadping ();
byte[] data;
byte[] data = null;
var msg = _state.CheckIfStart () ?? WebSocket.CheckPingParameter (message, out data);
if (msg != null) {
_logger.Error (msg);