bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NetBSD failure on nl_langinfo


From: Eric Blake
Subject: Re: NetBSD failure on nl_langinfo
Date: Fri, 22 Oct 2010 07:52:09 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/22/2010 02:37 AM, Paolo Bonzini wrote:
On 10/22/2010 02:06 AM, Bruno Haible wrote:
+ ASSERT (strlen (currency)>= 0);

Isn't this asser bogus since strlen returns size_t? Or are you just
testing that it doesn't return rubbish?

You are indeed correct that the ASSERTION will never fail for valid strings; but it does catch (via SIGSEGV) if a NULL pointer was returned.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]