Skip to content

Commit 5ba1986

Browse files
committed
CDRIVER-2691 fix scan build
1 parent 468174d commit 5ba1986

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libmongoc/tests/json-test-operations.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ count (mongoc_collection_t *collection,
887887
bson_t reply;
888888
bson_t opts = BSON_INITIALIZER;
889889
bson_error_t error;
890-
int64_t r = -1;
890+
int64_t r;
891891
bson_value_t value;
892892
const char *name;
893893

@@ -930,6 +930,7 @@ count (mongoc_collection_t *collection,
930930
bson_init (&reply);
931931
} else {
932932
test_error ("count() called with unrecognized operation name %s", name);
933+
return;
933934
}
934935

935936
if (r >= 0) {

0 commit comments

Comments
 (0)