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   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to