Skip to content

Commit 3c7b0f3

Browse files
jbergstroemmdirolf
authored andcommitted
typo
1 parent a96b838 commit 3c7b0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/_cbsonmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ static int add_last_error(bson_buffer* buffer, int request_id, PyObject* args) {
980980

981981
/* save space for length */
982982
document_start = buffer_save_bytes(buffer, 4);
983-
if (document_length == -1) {
983+
if (document_start == -1) {
984984
return 0;
985985
}
986986

0 commit comments

Comments
 (0)