[Xfce-i18n] WG: Re: Translation of "Application" and "Places" to German
Nick Schermer
nickschermer at gmail.com
Mon Aug 18 10:32:56 CEST 2008
2008/8/18 Jean-François Wauthy <pollux at xfce.org>:
> On Thu, 2008-08-14 at 14:33 +0300, Jari Rahkonen wrote:
>
>> + if(value && value != "") {
>
> FYI, you're comparing pointers here.
> strlen (value) > 0 would be better IMO.
Is strlen NULL safe then?
if (value && *value != '\0') is also a good way to check if the string
is 'empty'.
Nick
More information about the Xfce-i18n
mailing list