projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops, d can be NULL !
[apps/madmutt.git]
/
buffy.c
diff --git
a/buffy.c
b/buffy.c
index
c7bbc40
..
2aaa494
100644
(file)
--- a/
buffy.c
+++ b/
buffy.c
@@
-41,7
+41,7
@@
int buffy_lookup(const char* path)
{
int i;
{
int i;
- if (
!path || !*path
)
+ if (
m_strisempty(path)
)
return -1;
for (i = 0; i < Incoming.len; i++) {
return -1;
for (i = 0; i < Incoming.len; i++) {
@@
-64,7
+64,7
@@
int buffy_parse_mailboxes(BUFFER *path, BUFFER *s, unsigned long data,
mutt_extract_token(path, s, 0);
m_strcpy(buf, sizeof(buf), path->data);
mutt_extract_token(path, s, 0);
m_strcpy(buf, sizeof(buf), path->data);
- if (data == M_UNMAILBOXES && !strcmp(buf, "*")) {
+ if (data == M_UNMAILBOXES && !
m_
strcmp(buf, "*")) {
buffy_array_wipe(&Incoming);
return 0;
}
buffy_array_wipe(&Incoming);
return 0;
}
@@
-319,7
+319,7
@@
int buffy_list (void)
{
char buffylist[LONG_STRING];
int have_unnotified = BuffyNotify;
{
char buffylist[LONG_STRING];
int have_unnotified = BuffyNotify;
- int pos = 0, first =
0
, i;
+ int pos = 0, first =
1
, i;
pos = m_strcpy(buffylist, sizeof(buffylist), _("New mail in "));
pos = m_strcpy(buffylist, sizeof(buffylist), _("New mail in "));