Fix null-array bug in JSON lib as well as flv_tag compile warnings.
This commit is contained in:
parent
b90c4e2623
commit
cd0d79790b
2 changed files with 13 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue