From 47b025244627c60cfd92ffb3378df8caabdcc7d0 Mon Sep 17 00:00:00 2001 From: Camille Oudot Date: Wed, 23 Jul 2014 18:09:42 +0200 Subject: [PATCH] fix null/empty string check in ng_call_stats --- daemon/call_interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index ec62ddfc0..da5b6c628 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -823,7 +823,7 @@ void ng_call_stats(struct call *call, const str *fromtag, const str *totag, benc stats: match_tag = (totag && totag->s && totag->len) ? totag : fromtag; - if (!match_tag) { + if (!match_tag || !match_tag->len) { for (l = call->monologues; l; l = l->next) { ml = l->data; ng_stats_monologue(tags, ml, totals);