diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-15 18:51:06 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-05-15 21:37:07 +0200 |
commit | 229862224301e3fa3fc30cd495a7ff9ee7ca4b60 (patch) | |
tree | a78b9759ab8e29440ea399206ac7ee889cc45b48 /lib/dbwrap/dbwrap_rbt.c | |
parent | 5f494c424cf204c1b5164085aecb3ea54c1b0fa9 (diff) | |
download | samba-229862224301e3fa3fc30cd495a7ff9ee7ca4b60.tar.gz samba-229862224301e3fa3fc30cd495a7ff9ee7ca4b60.tar.xz samba-229862224301e3fa3fc30cd495a7ff9ee7ca4b60.zip |
dbwrap: Fix Coverity ID 242750 Incorrect sizeof expression
Taking the size of "db" is correct, but a bit fishy. Silence Coverity.
Diffstat (limited to 'lib/dbwrap/dbwrap_rbt.c')
-rw-r--r-- | lib/dbwrap/dbwrap_rbt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dbwrap/dbwrap_rbt.c b/lib/dbwrap/dbwrap_rbt.c index c25ea6ec64f..d468953a8a8 100644 --- a/lib/dbwrap/dbwrap_rbt.c +++ b/lib/dbwrap/dbwrap_rbt.c @@ -411,7 +411,7 @@ static int db_rbt_trans_dummy(struct db_context *db) static void db_rbt_id(struct db_context *db, const uint8_t **id, size_t *idlen) { *id = (uint8_t *)db; - *idlen = sizeof(db); + *idlen = sizeof(struct db_context *); } struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx) |