set copyright year to 2015
[ppastats.git] / src / lp_ws.c
index f04f169..523f185 100644 (file)
@@ -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));