index da9f55076f6d5a1fc33969bee7012d3fb6ea6856..a3efb4669c182ee66938ac3554ba79c10d577d84 100644 (file)
--- a/src/core/store_lookup.c
+++ b/src/core/store_lookup.c
sdb_store_cond_t *cond;
_Bool inv = 0;
- /* TODO: this will reject any attributes called "name";
- * use a different syntax for querying objects by name */
- if (! strcasecmp(attr, "name"))
+ if (! attr)
return NULL;
if (! strcasecmp(op, "IS")) {
return NULL;
}
- if (! strcasecmp(attr, "name"))
+ if (! attr)
m = sdb_store_name_matcher(type, value->data.string, re);
else if (type == SDB_ATTRIBUTE)
m = sdb_store_attr_matcher(attr, value->data.string, re);