X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=52fbb06abd44a71f72a2c2ba193e74ada768dad7;hp=c6207c7292c9f87d55c6a6b8aae64290beaed54e;hb=408bb2f4e5bd18dc15627f1cd5dc6ffb741a08b6;hpb=8476307969a605bea67f6b702b0c1e7a52038bed diff --git a/browser.c b/browser.c index c6207c7..52fbb06 100644 --- a/browser.c +++ b/browser.c @@ -27,7 +27,7 @@ #include #ifdef USE_NNTP -#include "nntp.h" +#include #endif static struct mapping_t FolderHelp[] = { @@ -462,8 +462,7 @@ static int examine_directory (MUTTMENU * menu, struct browser_state *state, if (!(data = (NNTP_DATA *) tmp->data)) continue; nntp_sync_sidebar (data); - if (prefix && *prefix && strncmp (prefix, data->group, - m_strlen(prefix)) != 0) + if (m_strncmp (prefix, data->group, m_strlen(prefix)) != 0) continue; if (!((regexec (Mask.rx, data->group, 0, NULL, 0) == 0) ^ Mask.not)) continue; @@ -516,8 +515,7 @@ static int examine_directory (MUTTMENU * menu, struct browser_state *state, if (m_strcmp(de->d_name, ".") == 0) continue; /* we don't need . */ - if (prefix && *prefix - && m_strncmp(prefix, de->d_name, m_strlen(prefix)) != 0) + if (m_strncmp(prefix, de->d_name, m_strlen(prefix)) != 0) continue; if (!((regexec (Mask.rx, de->d_name, 0, NULL, 0) == 0) ^ Mask.not)) continue;