summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17568ea)
raw | patch | inline | side by side (parent: 17568ea)
author | Florian Forster <octo@verplant.org> | |
Thu, 9 Sep 2010 07:52:13 +0000 (09:52 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Thu, 9 Sep 2010 07:52:13 +0000 (09:52 +0200) |
src/dp_rrdtool.c | patch | blob | history |
diff --git a/src/dp_rrdtool.c b/src/dp_rrdtool.c
index 61fd058279b690fea13e8dc00d786b94923295be..d7ad5ba612360bb05a3853602176ab7594b8ef55 100644 (file)
--- a/src/dp_rrdtool.c
+++ b/src/dp_rrdtool.c
continue;
keylen = strlen (ptr->key);
- if (keylen < strlen ("ds[?].index"))
+ if (keylen < strlen ("ds[?].type"))
continue;
- dslen = keylen - strlen ("ds[].index");
+ dslen = keylen - strlen ("ds[].type");
assert (dslen >= 1);
- if (strcmp ("].index", ptr->key + (strlen ("ds[") + dslen)) != 0)
+ if (strcmp ("].type", ptr->key + (strlen ("ds[") + dslen)) != 0)
continue;
ds = malloc (dslen + 1);