projects
/
ppastats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed compilation against newer version of json-c (deprecation of the function json_o...
[ppastats.git]
/
src
/
lp_ws.c
diff --git
a/src/lp_ws.c
b/src/lp_ws.c
index
f04f169
..
fe93e39
100644
(file)
--- 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));
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));
if (o_next)
url = strdup(json_object_get_string(o_next));