[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: avoid compiler warning
From: |
Ralf Wildenhues |
Subject: |
Re: avoid compiler warning |
Date: |
Mon, 2 Nov 2009 20:33:52 +0100 |
User-agent: |
Mutt/1.5.20 (2009-08-09) |
* Eric Blake wrote on Mon, Nov 02, 2009 at 08:17:36PM CET:
> Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de> writes:
>
> > The compiler warning is bogus. Your patch pessimizes the code; IIRC it
> > can cause runtime-initialization of the pointer.
> >
> > OK to commit a patch to change this to strlen.
>
> Like so?
Yes, thanks.
> Date: Mon, 2 Nov 2009 11:58:28 -0700
> Subject: [PATCH] Allow gcc builds with -Wall -Werror.
>
> * libltdl/ltdl.c (try_dlopen): Use strlen rather than LT_STRLEN on
> an array that will never be NULL.
>
> Signed-off-by: Eric Blake <address@hidden>
Signed-off-by: Ralf Wildenhues <address@hidden>