* fix crash in downloads.c; memset should prune SubTP not TP.
[citadel.git] / webcit / downloads.c
index 3bd86350ea88510de31380b9f9a98f2a3b485a93..8544aabb9db93a88d75e50fd00595fadb94e9799 100644 (file)
@@ -175,7 +175,7 @@ HashList* LoadFileList(StrBuf *Target, WCTemplputParams *TP)
        int HavePic;
        WCTemplputParams SubTP;
 
-       memset(&TP, 0, sizeof(WCTemplputParams));
+       memset(&SubTP, 0, sizeof(WCTemplputParams));
        serv_puts("RDIR");
        serv_getln(buf, sizeof buf);
        if (buf[0] != '1') return NULL;