X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffolder_read.c;h=2e67917257f57944b649045848b76a4a33f32a11;hb=4c24408bdff496a631709326b0d07a4e12fa9277;hp=b5b3f9d58792eb8c769d135554d3f976bce38bdb;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/folder_read.c b/sbr/folder_read.c index b5b3f9d..2e67917 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -70,7 +70,7 @@ folder_read (char *name) adios (NULL, "unable to allocate storage"); while ((dp = readdir (dd))) { - if ((msgnum = m_atoi (dp->d_name))) { + if ((msgnum = m_atoi (dp->d_name)) && msgnum > 0) { /* * Check if we need to allocate more * temporary elements for message names.