X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp_ws.c;h=523f185bcd7a4e54b97f5e97a9f30af2b917be6d;hb=474ab6fa492a8b1dde963fdecb1edebc111c5fb2;hp=f04f16984b6239f504d749bd0b2abaf7bad9a747;hpb=586361f5da21ef8e34987db0c628af1fb06df6a1;p=ppastats.git diff --git a/src/lp_ws.c b/src/lp_ws.c index f04f169..523f185 100644 --- a/src/lp_ws.c +++ b/src/lp_ws.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2014 jeanfi@gmail.com + * Copyright (C) 2011-2015 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -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));