]> diplodocus.org Git - nmh/blobdiff - uip/flist.c
mhshow/test-charset: Test iconv(1)'s result, not just its exit status.
[nmh] / uip / flist.c
index cd5682af6dd8ffff4e42c3f93a306acdcfeb64b2..057192c3d5600184e228bef5d1cb43ce9eba2b4c 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "h/done.h"
 #include "sbr/m_maildir.h"
 
 /*
@@ -410,7 +411,7 @@ BuildFolderListRecurse(char *dirName, struct stat *s, int searchdepth)
        /* Check to see if the name of the file is a number
         * if it is, we assume it's a mail file and skip it
         */
-       for (n = dp->d_name; *n && isdigit((unsigned char) *n); n++);
+       for (n = dp->d_name; isdigit((unsigned char)*n); n++);
        if (!*n)
            continue;
        strncpy (name, base, sizeof(name) - 2);