fixed compilation against newer version of json-c (deprecation of the function json_o...
[ppastats.git] / src / lp_ws.c
index f04f169..fe93e39 100644 (file)
@@ -205,7 +205,7 @@ struct bpph **get_bpph_list(const char *archive_url,
                result = bpph_list_append_list(result,
                                               json_object_to_bpph_list(o));
 
-               o_next = json_object_object_get(o, "next_collection_link");
+               json_object_object_get_ex(o, "next_collection_link", &o_next);
 
                if (o_next)
                        url = strdup(json_object_get_string(o_next));