From: Ralph Corderoy Date: Sun, 30 Oct 2016 20:48:25 +0000 (+0000) Subject: Remove mhparam's p_find()'s ability to take NULL argument. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/721832442d6f90fe66230bb3a00ab3b7bfd74903 Remove mhparam's p_find()'s ability to take NULL argument. It can't be passed NULL and couldn't get coverage. --- diff --git a/uip/mhparam.c b/uip/mhparam.c index 4457829a..24233340 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -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);