tf (1:4.0s1-17) src/util.c

Summary

 src/util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

--- tf-4.0s1.orig/src/util.c
+++ tf-4.0s1/src/util.c
@@ -887,7 +887,7 @@
     CONST char *end;
 
     path = (TFMAILPATH && *TFMAILPATH) ? TFMAILPATH : MAIL;
-    while (*(name = stringarg(&path, &end))) {
+    while (path && *(name = stringarg(&path, &end))) {
         for (oldp = &maillist; *oldp; oldp = &(*oldp)->next) {
             if (strncmp(name, (*oldp)->name, end-name) == 0 &&
                 !(*oldp)->name[end-name])