NNTP_DATA *nntp_data = (NNTP_DATA *) ctx->data;
char buf[STRING];
int i, ret = 0, tmp = 0;
- CHILD_CONTEXT cc;
+ CHILD_CONTEXT cc = { ctx, 0, 0, NULL };
if (!nntp_data || !nntp_data->nserv || !nntp_data->nserv->conn ||
!nntp_data->nserv->conn->account.host)
snprintf (buf, sizeof (buf), "XPAT References %d-%d *%s*\r\n",
nntp_data->firstMessage, nntp_data->lastLoaded, msgid);
- cc.ctx = ctx;
- cc.num = 0;
- cc.max = 25;
- cc.child = p_new(int, 25);
if (mutt_nntp_fetch (nntp_data, buf, NULL, NULL, check_children, &cc, 0)) {
p_delete(&cc.child);
return -1;
}
+
/* dont try to read the xover cache. check_children() already
* made sure that we dont have the article, so we need to visit
* the server. Reading the cache at this point is also bad
}
static int nntp_is_magic (const char* path, struct stat* st) {
- url_scheme_t s = url_check_scheme (NONULL (path));
- return ((s == U_NNTP || s == U_NNTPS) ? M_NNTP : -1);
+ url_scheme_t s = url_check_scheme(NONULL(path));
+ return s == U_NNTP || s == U_NNTPS ? M_NNTP : -1;
}
static int acl_check_nntp (CONTEXT* ctx, int bit) {