File: libjsoncpp_1_8_4_compat

package info (click to toggle)
libseqlib 1.2.0%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,312 kB
  • sloc: cpp: 7,376; makefile: 63; sh: 5
file content (12 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
--- libseqlib.orig/src/ReadFilter.cpp
+++ libseqlib/src/ReadFilter.cpp
@@ -193,7 +193,8 @@
 
     // assign the global rule if there is one
     // remove from the rest of the rules
-    Json::Value glob = root.removeMember("global");
+    Json::Value glob = root.get("global", null);
+    root.removeMember("global");
     if (!glob.isNull()) 
       rule_all.parseJson(glob);