]> diplodocus.org Git - nmh/blobdiff - uip/flist.c
mhfixmsg.c: Fix memory leak of temporary filename if write fails.
[nmh] / uip / flist.c
index cd5682af6dd8ffff4e42c3f93a306acdcfeb64b2..f40f010dee9e7b8afd42b35050e27a17683055df 100644 (file)
@@ -410,7 +410,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);