From 957b1e655056bbb1e35df5d14ac6cbb395fbfb02 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Tue, 6 Mar 2018 17:14:45 -0300 Subject: [PATCH] =?utf8?q?N=C3=A3o=20imprime=20soma=20de=20zero=20a=20tota?= =?utf8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/totais.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/totais.c b/lib/totais.c index 5d32d33..b9f0aa1 100644 --- a/lib/totais.c +++ b/lib/totais.c @@ -40,7 +40,7 @@ int totais_add(struct declaracao *dec, char *key, long long val) goto out_hash; *p = 0; } - if (dec->verbose) { + if (dec->verbose && val) { printf("Somando "FMT_R" a %s: "FMT_R" -> "FMT_R"\n", R(val), key, R(*p), R(*p + val)); } -- 2.20.1