projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regex match: Fix unexpected match with empty meta data
[collectd.git]
/
src
/
rrdtool.c
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
f6290d7
..
d0849d1
100644
(file)
--- a/
src/rrdtool.c
+++ b/
src/rrdtool.c
@@
-25,11
+25,11
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
-#include "utils_avltree.h"
+#include "utils/avltree/avltree.h"
+#include "utils/common/common.h"
+#include "utils/rrdcreate/rrdcreate.h"
#include "utils_random.h"
#include "utils_random.h"
-#include "utils_rrdcreate.h"
#include <rrd.h>
#include <rrd.h>
@@
-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);
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) {
status = c_avl_get(cache, key, (void *)&rc);
if (status != 0) {