summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: c4c851c)
raw | patch | inline | side by side (from parent 1: c4c851c)
author | Florian Forster <octo@verplant.org> | |
Thu, 9 Sep 2010 12:29:24 +0000 (14:29 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Thu, 9 Sep 2010 12:29:24 +0000 (14:29 +0200) |
src/common.c | patch | blob | history |
diff --git a/src/common.c b/src/common.c
index 2a5bf45262a565943c5d6ec26b4686afee0e86c7..9a2196b095db9f3c3172d594f191ddcc680e3fd1 100644 (file)
--- a/src/common.c
+++ b/src/common.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);