Fix: [warn]: Malformed Header, expected Array

We did not check whether we got the TAGS array in here.
This commit is contained in:
Matthias Beyer 2016-01-03 20:37:41 +01:00
parent 221fbee4a7
commit dc60b003aa

View file

@ -87,7 +87,11 @@ pub mod data {
let keys : Vec<FHD> = ks.clone();
for key in keys {
match key {
FHD::Key{name: _, value: ref v} => return match_array(v),
FHD::Key{name: ref name, value: ref v} => {
if name == "TAGS" {
return match_array(v)
}
},
_ => warn!("Malformed Header Data: Expected Key, found non-Key"),
}
}