summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/IvyPPC/IvyTCPStreamV4.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyTCPStreamV4.cs b/CSharp/Ivy/IvyPPC/IvyTCPStreamV4.cs
index ce60a7f..028b2c5 100644
--- a/CSharp/Ivy/IvyPPC/IvyTCPStreamV4.cs
+++ b/CSharp/Ivy/IvyPPC/IvyTCPStreamV4.cs
@@ -185,7 +185,7 @@ namespace IvyBus
}
bool IvyProtocol.receiveMsg()
{
- Ivy.ApplicationBinding bind = new Ivy.ApplicationBinding();
+ Ivy.ApplicationBinding bind;
MessageType msgType = MessageType.Die;
ushort msgId = 0;
string[] msgData = null;
@@ -207,6 +207,7 @@ namespace IvyBus
break;
case MessageType.AddRegexp:
+ bind = new Ivy.ApplicationBinding();
bind.type = Ivy.BindingType.BindRegexp;
bind.key = msgId;
bind.expression = msgData[0];
@@ -214,6 +215,7 @@ namespace IvyBus
break;
case MessageType.AddBinding:
+ bind = new Ivy.ApplicationBinding();
bind.type = Ivy.BindingType.BindSimple;
bind.key = msgId;
bind.expression = msgData[0];