From: Sebastian Harl Date: Wed, 11 Mar 2015 18:59:13 +0000 (+0100) Subject: data: sdb_data_strcmp supports arrays because sdb_data_format supports it. X-Git-Tag: sysdb-0.8.0~127 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b76dd1feacea773cbff168d5d916f4231acc7953;p=sysdb.git data: sdb_data_strcmp supports arrays because sdb_data_format supports it. --- diff --git a/src/core/data.c b/src/core/data.c index 914946f..2b1cff2 100644 --- a/src/core/data.c +++ b/src/core/data.c @@ -668,12 +668,6 @@ sdb_data_strcmp(const sdb_data_t *d1, const sdb_data_t *d2) char d1_str[sdb_data_strlen(d1) + 1]; char d2_str[sdb_data_strlen(d2) + 1]; - if ((d1->type & SDB_TYPE_ARRAY) || (d2->type & SDB_TYPE_ARRAY)) { - /* TODO */ - errno = ENOTSUP; - return -1; - } - if (sdb_data_isnull(d1)) d1 = NULL; if (sdb_data_isnull(d2))