From 7294e0685a4b74576c3c915dc0a93a0a4e6e11dd Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 6 Jul 2012 13:23:41 +0200 Subject: [PATCH] Ensure an array terminator is only written if the signs array actually exists. --- src/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/save.c b/src/save.c index e49aff5d0..7a846d7ec 100644 --- a/src/save.c +++ b/src/save.c @@ -802,8 +802,8 @@ void *build_save_OPS(int *size, int orig_x0, int orig_y0, int orig_w, int orig_h bson_append_finish_object(&b); } } + bson_append_finish_array(&b); } - bson_append_finish_array(&b); bson_finish(&b); bson_print(&b);