Fix null-array bug in JSON lib as well as flv_tag compile warnings.

This commit is contained in:
Thulinma 2012-05-11 15:45:29 +02:00
parent b90c4e2623
commit cd0d79790b
2 changed files with 13 additions and 9 deletions

View file

@ -98,12 +98,16 @@ JSON::Value::Value(std::istream & fromstream){
c = fromstream.get();
myType = OBJECT;
break;
case '[':
case '[':{
reading_array = true;
c = fromstream.get();
myType = ARRAY;
append(JSON::Value(fromstream));
Value tmp = JSON::Value(fromstream);
if (tmp.myType != EMPTY){
append(tmp);
}
break;
}
case '\'':
case '"':
c = fromstream.get();