Code

store: Don't overwrite attribute values if the new timestamp is too old.
[sysdb.git] / src / core / store.c
index 323ed778b7c52fa76c8d492447781b2920695995..7de75b1ee546e6a49509746fa0a13410834ba779 100644 (file)
@@ -324,7 +324,7 @@ store_attr(sdb_llist_t *attributes, const char *key, const sdb_data_t *value,
        int status;
 
        status = store_obj(attributes, SDB_ATTRIBUTE, key, last_update, &attr);
-       if (status < 0)
+       if (status)
                return status;
 
        assert(attr);