From: Ian Jackson Date: Sat, 29 May 2010 17:18:53 +0000 (+0100) Subject: another notice_processed fix X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=4332dc9e11bdd1dc45a75aa3b5249f816ef7f148;p=innduct.git another notice_processed fix --- diff --git a/statemc.c b/statemc.c index dda412d..58aaefd 100644 --- a/statemc.c +++ b/statemc.c @@ -227,11 +227,9 @@ static void notice_processed_counts(Counts *counts, int completed, #define CNT(art,rc) (counts->results[art_##art][RC_##rc]) - assert(!completed || ipf_xtra); - - char *inprog= completed - ? xasprintf("%s","") /* GCC produces a stupid warning for printf("") ! */ - : xasprintf(" inprogress=%ld", ipf_xtra->inprogress); + char *inprog= ipf_xtra && !completed + ? xasprintf(" inprogress=%ld", ipf_xtra->inprogress) + : xasprintf("%s",""); /* GCC produces a stupid warning for printf("") ! */ char *autodefer= ipf_xtra && ipf_xtra->autodefer >= 0 ? xasprintf(" autodeferred=%ld", ipf_xtra->autodefer) : xasprintf("%s","");