aboutsummaryrefslogtreecommitdiff
path: root/src/im-zmq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-zmq.c')
-rw-r--r--src/im-zmq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/im-zmq.c b/src/im-zmq.c
index 4273b600..3fd04428 100644
--- a/src/im-zmq.c
+++ b/src/im-zmq.c
@@ -62,7 +62,6 @@ struct im_zmq *im_zmq_connect(const char *zmq_address,
const char *zmq_request)
{
struct im_zmq *z;
- int i;
z = malloc(sizeof(struct im_zmq));
if ( z == NULL ) return NULL;
@@ -93,6 +92,8 @@ struct im_zmq *im_zmq_connect(const char *zmq_address,
if ( zmq_request == NULL ) {
+ int i;
+
/* SUB mode */
if ( n_subscriptions == 0 ) {
ERROR("WARNING: No ZeroMQ subscriptions. You should "