2008/8/18 Jean-François Wauthy <[EMAIL PROTECTED]>:
> 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
_______________________________________________
Xfce-i18n mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce-i18n

Reply via email to