the big relocation patch
[monky] / src / rss.c
index 222c41f..f1b69fb 100644 (file)
--- a/src/rss.c
+++ b/src/rss.c
@@ -115,12 +115,6 @@ PRSS *get_rss_info(char *uri, int delay)
        CURL *curl = NULL;
        CURLcode res;
 
-       // curl temps
-       struct MemoryStruct chunk;
-
-       chunk.memory = NULL;
-       chunk.size = 0;
-
        // pointers to struct
        feed *curfeed = NULL;
        PRSS *curdata = NULL;
@@ -128,6 +122,12 @@ PRSS *get_rss_info(char *uri, int delay)
 
        int i;
 
+       // curl temps
+       struct MemoryStruct chunk;
+
+       chunk.memory = NULL;
+       chunk.size = 0;
+
        // first seek for the uri in list
        for (i = 0; i < num_feeds; i++) {
                if (feeds[i].uri != NULL) {