From 58b482856cf37b0519e516ab8dc1105ba958f8b2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Apr 2019 18:22:17 +0200 Subject: Adding upstream version 1.14.0. Signed-off-by: Daniel Baumann --- streaming/rrdpush.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'streaming/rrdpush.c') diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c index b98d0b3dc..acf69ffd3 100644 --- a/streaming/rrdpush.c +++ b/streaming/rrdpush.c @@ -151,13 +151,15 @@ static inline void rrdpush_send_chart_definition_nolock(RRDSET *st) { // properly set the name for the remote end to parse it char *name = ""; - if(unlikely(strcmp(st->id, st->name))) { - // they differ - name = strchr(st->name, '.'); - if(name) - name++; - else - name = ""; + if(likely(st->name)) { + if(unlikely(strcmp(st->id, st->name))) { + // they differ + name = strchr(st->name, '.'); + if(name) + name++; + else + name = ""; + } } // info("CHART '%s' '%s'", st->id, name); -- cgit v1.2.3