X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=blobdiff_plain;f=src%2Flp_ws.c;fp=src%2Flp_ws.c;h=fe93e3995eb9ab08e9d00c7dd176239329f9e443;hp=f04f16984b6239f504d749bd0b2abaf7bad9a747;hb=d79b9626414f0543612545c498c560108a388e9b;hpb=80c2b1ecf858c7df7a7e447ed4e7e10393be6a17 diff --git a/src/lp_ws.c b/src/lp_ws.c index f04f169..fe93e39 100644 --- a/src/lp_ws.c +++ b/src/lp_ws.c @@ -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));