X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ppastats-pkg-ubuntu.git;a=blobdiff_plain;f=src%2Flp_ws.c;h=fe93e3995eb9ab08e9d00c7dd176239329f9e443;hp=f04f16984b6239f504d749bd0b2abaf7bad9a747;hb=634939b8eb0d4d8fbf2bfcafd98776f9ce3c1f52;hpb=73eabee5220bdce792b25c83391597d84b7e0812 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));