diff options
Diffstat (limited to 'storage/connect/bson.cpp')
-rw-r--r-- | storage/connect/bson.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/storage/connect/bson.cpp b/storage/connect/bson.cpp index fc58303a73f..7728d488a00 100644 --- a/storage/connect/bson.cpp +++ b/storage/connect/bson.cpp @@ -1199,15 +1199,14 @@ void BJSON::SetArrayValue(PBVAL bap, PBVAL nvp, int n) { CheckType(bap, TYPE_JAR); int i = 0; - PBVAL bvp = NULL, pvp = NULL; + PBVAL bvp = NULL; if (bap->To_Val) for (bvp = GetArray(bap); bvp; i++, bvp = GetNext(bvp)) if (i == n) { SetValueVal(bvp, nvp); return; - } else - pvp = bvp; + } if (!bvp) AddArrayValue(bap, MOF(nvp)); |