removed used local var initialization
[ppastats.git] / src / lp_ws.c
index 55a54aa..ecc95cc 100644 (file)
@@ -114,14 +114,14 @@ static char *get_last_creation_date(struct bpph **list)
 struct bpph **get_bpph_list(const char *archive_url, const char *pkg_status)
 {
        char *url, *key, *tmp;
-       struct bpph **result = NULL;
+       struct bpph **result;
        struct json_object *o, *bpph_json, *o_next;
        char *created_since_date;
        int ok;
 
        url = malloc(strlen(archive_url)
-               + strlen(QUERY_GET_PUBLISHED_BINARIES)
-               + 1);
+                    + strlen(QUERY_GET_PUBLISHED_BINARIES)
+                    + 1);
        strcpy(url, archive_url);
        strcat(url, QUERY_GET_PUBLISHED_BINARIES);
 
@@ -170,7 +170,6 @@ struct bpph **get_bpph_list(const char *archive_url, const char *pkg_status)
                        url = strdup(json_object_get_string(o_next));
 
                json_object_put(o);
-
        }
 
        if (ok) {