From 3c7b0f39a8a216aefd03ec0079041e17857c7af7 Mon Sep 17 00:00:00 2001 From: jbergstroem Date: Sun, 8 Aug 2010 06:04:39 +0800 Subject: [PATCH] typo --- pymongo/_cbsonmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/_cbsonmodule.c b/pymongo/_cbsonmodule.c index 699d40adc..ba386db35 100644 --- a/pymongo/_cbsonmodule.c +++ b/pymongo/_cbsonmodule.c @@ -980,7 +980,7 @@ static int add_last_error(bson_buffer* buffer, int request_id, PyObject* args) { /* save space for length */ document_start = buffer_save_bytes(buffer, 4); - if (document_length == -1) { + if (document_start == -1) { return 0; }