]> diplodocus.org Git - nmh/commitdiff
Remove mhparam's p_find()'s ability to take NULL argument.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 30 Oct 2016 20:48:25 +0000 (20:48 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 30 Oct 2016 20:48:25 +0000 (20:48 +0000)
It can't be passed NULL and couldn't get coverage.

uip/mhparam.c

index 4457829..2423334 100644 (file)
@@ -265,8 +265,6 @@ p_find(char *str)
 {
     struct proc *ps;
 
-    if (!str)
-        str = "";
     for (ps = procs; ps->p_name; ps++)
        if (!strcasecmp (ps->p_name, str))
            return (*ps->p_field);