X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnntp.c;h=b70c115e84ba3d74f5828a4f28fe4e08e884d8c5;hp=2b9ead7da3a05f1840fa40c333ebd02d196dac02;hb=2ea77d3b2827ba23feb756ce2fb936565ae38998;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/nntp/nntp.c b/nntp/nntp.c index 2b9ead7..b70c115 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -440,7 +440,7 @@ static void nntp_parse_xref (CONTEXT * ctx, char *group, char *xref, *colon = '\0'; colon++; nntp_get_status (ctx, h, b, atoi (colon)); - if (h && h->article_num == 0 && str_cmp (group, b) == 0) + if (h && h->article_num == 0 && m_strcmp(group, b) == 0) h->article_num = atoi (colon); } } @@ -512,7 +512,7 @@ static int parse_description (char *line, void *n) d++; debug_print (2, ("group: %s, desc: %s\n", line, d)); if ((data = (NNTP_DATA *) hash_find (news->newsgroups, line)) != NULL && - str_cmp (d, data->desc)) { + m_strcmp(d, data->desc)) { p_delete(&data->desc); data->desc = m_strdup(d); } @@ -848,7 +848,7 @@ int nntp_open_mailbox (CONTEXT * ctx) unsigned int first; ACCOUNT acct; - memset (&acct, 0, sizeof (ACCOUNT)); + p_clear(&acct, 1); if (nntp_parse_url (ctx->path, &acct, buf, sizeof (buf)) < 0 || !*buf) { mutt_error (_("%s is an invalid newsgroup specification!"), ctx->path);