Skip to content

Commit

Permalink
Fix segmentation violation in JsonArray::remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Nov 5, 2018
1 parent 0c3753d commit b905cf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ArduinoJson/Data/ArrayFunctions.hpp
Expand Up @@ -28,6 +28,7 @@ inline JsonVariantData* arrayAdd(JsonArrayData* arr, MemoryPool* pool) {
arr->tail = slot;
}

slot->value.keyIsOwned = false;
return &slot->value;
}

Expand Down

0 comments on commit b905cf9

Please sign in to comment.