Skip to content

Commit

Permalink
ctdb-tests: CID 1125635 Dereference null return value (NULL_RETURNS)
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12244

Signed-off-by: Martin Schwenke <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
martin-schwenke authored and Amitay Isaacs committed Sep 8, 2016
1 parent 19b4fb2 commit bacdb2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ctdb/tests/src/rb_test.c
Original file line number Diff line number Diff line change
@@ -143,6 +143,7 @@ int main(int argc, const char *argv[])
*/
for (i=0; i<num_records; i++) {
data = trbt_lookup32(tree, i);
assert(data != NULL);
if (i < 3) {
assert(*data == 1);
} else {

0 comments on commit bacdb2e

Please sign in to comment.