X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=605a16ccc00855f8554f70af940dec7fcdf106f7;hb=711f5b6c86f51061c21bedcaa46214a01de0125c;hp=f6290d73ec451e2b2bcd5b2889942f6e8aa2079a;hpb=009c673408d3e05f8604b3fb818cf3358f984be3;p=collectd.git diff --git a/src/rrdtool.c b/src/rrdtool.c index f6290d73..605a16cc 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -569,7 +569,7 @@ static int rrd_cache_flush_identifier(cdtime_t timeout, snprintf(key, sizeof(key), "%s.rrd", identifier); else snprintf(key, sizeof(key), "%s/%s.rrd", datadir, identifier); - key[sizeof(key) - 1] = 0; + key[sizeof(key) - 1] = '\0'; status = c_avl_get(cache, key, (void *)&rc); if (status != 0) {