From de09b82310f7b464e4095d1b750d9b968c84b6ed Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 8 Mar 2019 18:43:04 +0100 Subject: Fix variable initialisation and decision about data source --- src/im-sandbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/im-sandbox.c') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 9c00ad0c..20bd6c94 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -371,7 +371,7 @@ static int run_work(const struct index_args *iargs, Stream *st, { int allDone = 0; TimeAccounts *taccs; - struct im_zmq *zmqstuff; + struct im_zmq *zmqstuff = NULL; /* Connect via ZMQ */ if ( sb->zmq ) { @@ -453,6 +453,7 @@ static int run_work(const struct index_args *iargs, Stream *st, } else { pargs.msgpack_obj = im_zmq_fetch(zmqstuff); + pargs.filename_p_e = NULL; } -- cgit v1.2.3