Ensure an array terminator is only written if the signs array actually exists.

This commit is contained in:
Simon Robertshaw 2012-07-06 13:23:41 +02:00
parent fc3bc43ba6
commit 7294e0685a

View File

@ -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);