From 4edd631159a29fdd77a62d99fa0bf8485a0d30e4 Mon Sep 17 00:00:00 2001 From: Phil Carns Date: Wed, 8 Jun 2016 14:58:20 -0400 Subject: [PATCH] ref count bug fix --- src/bake-bulk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bake-bulk.c b/src/bake-bulk.c index 3b4f5d8..5d3f149 100644 --- a/src/bake-bulk.c +++ b/src/bake-bulk.c @@ -51,7 +51,10 @@ static int hg_instance_init(const char *mercury_dest) { /* have we already started a Mercury instance? */ if(g_hginst.refct > 0) + { + g_hginst.refct++; return(0); + } /* boilerplate HG initialization steps */ /***************************************/ -- 2.26.2