summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ef9d05)
raw | patch | inline | side by side (parent: 6ef9d05)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 2 Aug 2014 10:59:44 +0000 (12:59 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 2 Aug 2014 10:59:44 +0000 (12:59 +0200) |
src/core/store_expr.c | patch | blob | history |
diff --git a/src/core/store_expr.c b/src/core/store_expr.c
index 9aa1ce99718fef3f42c6de7a165c8d3aef33b438..caf3aa6d79721d120bf3dbaa7b4cd0df74e76b08 100644 (file)
--- a/src/core/store_expr.c
+++ b/src/core/store_expr.c
sdb_data_t *res)
{
sdb_data_t v1 = SDB_DATA_INIT, v2 = SDB_DATA_INIT;
+ int status = 0;
if ((! expr) || (! res))
return -1;
return -1;
}
- if (sdb_data_expr_eval(expr->type, &v1, &v2, res)) {
- sdb_data_free_datum(&v1);
- sdb_data_free_datum(&v2);
- return -1;
- }
- return 0;
+ if (sdb_data_expr_eval(expr->type, &v1, &v2, res))
+ status = -1;
+ sdb_data_free_datum(&v1);
+ sdb_data_free_datum(&v2);
+ return status;
} /* sdb_store_expr_eval */
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */