X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=52fbb06abd44a71f72a2c2ba193e74ada768dad7;hp=8ff73d8804e5eaefb81e43b10c15cad609af9776;hb=055f4c1f45ad240f9095e79d3b6957db3ce29975;hpb=284454918cc95058b026d057195eaa5279135c36 diff --git a/browser.c b/browser.c index 8ff73d8..52fbb06 100644 --- a/browser.c +++ b/browser.c @@ -17,18 +17,17 @@ #include #include #include +#include #include "mutt.h" -#include "mx.h" #include "buffy.h" #include "sort.h" #include "browser.h" #include "attach.h" #include -#include #ifdef USE_NNTP -#include "nntp.h" +#include #endif static struct mapping_t FolderHelp[] = { @@ -463,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; @@ -517,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;