debian/patches/libjsoncpp_1_8_4_compat
raw| 1 | --- libseqlib.orig/src/ReadFilter.cpp |
| 2 | +++ libseqlib/src/ReadFilter.cpp |
| 3 | @@ -193,7 +193,8 @@ |
| 4 | |
| 5 | // assign the global rule if there is one |
| 6 | // remove from the rest of the rules |
| 7 | - Json::Value glob = root.removeMember("global"); |
| 8 | + Json::Value glob = root.get("global", null); |
| 9 | + root.removeMember("global"); |
| 10 | if (!glob.isNull()) |
| 11 | rule_all.parseJson(glob); |
| 12 |