tag 216433 pending
thanks

On Sat, Oct 18, 2003 at 09:03:32PM +0200, Petter Reinholdtsen wrote:
> --- util.c.~1.22.~    Sun Oct 12 23:15:38 2003
> +++ util.c    Sat Oct 18 21:01:16 2003
> @@ -263,9 +263,11 @@
>      if ((t1 = strstr(name, "-modules-")) == NULL)
>          return NULL;
>      t1 += sizeof("-modules-") - 1;
> -    if ((t2 = strstr(t1, "-udeb")) == NULL)
> +    if ((t2 = strstr(t1, "-udeb")) == NULL || 
> +     (t2 = strstr(t1, "-di")) == NULL)

You should use && instead of || here.

>          return NULL;
> -    if (t2[sizeof("-udeb") - 1] != '\0')
> +    if (t2[sizeof("-udeb") - 1] != '\0' &&
> +     t2[sizeof("-di") - 1] != '\0' &&)
>          return NULL;
>      t2 = di_stradup(t1, t2 - t1);
>      return t2;

Fixed in CVS.

-- 
Matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to