diff options
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r-- | src/im-sandbox.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index c3f2ca70..6b68326c 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -365,13 +365,14 @@ static int run_work(const struct index_args *iargs, Stream *st, } } + mille = NULL; + #ifdef HAVE_MILLEPEDE if ( iargs->mille ) { char tmp[64]; snprintf(tmp, 63, "mille-data-%i.bin", cookie); mille = crystfel_mille_new(tmp, 1, 0); - } else { - mille = NULL; } + #endif while ( !allDone ) { @@ -546,7 +547,9 @@ static int run_work(const struct index_args *iargs, Stream *st, free(pargs.event); } + #ifdef HAVE_MILLEPEDE crystfel_mille_free(mille); + #endif /* These are both no-ops if argument is NULL */ im_zmq_shutdown(zmqstuff); |