X-Git-Url: http://wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp_ws.c;fp=src%2Flp_ws.c;h=fe93e3995eb9ab08e9d00c7dd176239329f9e443;hb=51f2ef209d26bd71f4dde568802e614ab0f395dd;hp=f04f16984b6239f504d749bd0b2abaf7bad9a747;hpb=96e470bcb70cd2e3af623e3428f14e6a5b826b4c;p=ppastats-pkg-ubuntu.git 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));