Skip to content

Commit 0b5c729

Browse files
author
Christian Hergert
committed
gridfs: fix potential uninitialized use.
1 parent 5484f6b commit 0b5c729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongoc/mongoc-gridfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ mongoc_gridfs_remove_by_filename (mongoc_gridfs_t *gridfs,
323323
bool files_ret;
324324
bool ret = false;
325325
bson_iter_t iter;
326-
bson_t *files_q;
327-
bson_t *chunks_q;
326+
bson_t *files_q = NULL;
327+
bson_t *chunks_q = NULL;
328328
bson_t q = BSON_INITIALIZER;
329329
bson_t fields = BSON_INITIALIZER;
330330
bson_t ar = BSON_INITIALIZER;

0 commit comments

Comments
 (0)