Subject: Re: [PATCH] Fix warnings (and incorrect code?) for gcc-4.2.0

Re: [PATCH] Fix warnings (and incorrect code?) for gcc-4.2.0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 2 Jun 2007 22:08:46 +0200 (CEST)

On Wed, 16 May 2007, Brad Spencer wrote:

> This finds three lines in ares_init.c that look like they contain mistakes.
> There's a character array that contains a string or just a '\0', and it
> looks like the three tests involved are supposed to be checking if
> ipbufpfx[0] == '\0' or not, but they are instead testing the address of
> ipbufpfx.

Very nice catch! Patch applied (somewhat tweaked), thanks!

-- 
   c-ares -- my preferred DNS asynch resolver library
Received on 2007-06-02