[Xfce-i18n] WG: Re: Translation of "Application" and "Places" to German
Jean-François Wauthy
pollux at xfce.org
Mon Aug 18 10:42:04 CEST 2008
On Mon, 2008-08-18 at 10:32 +0200, Nick Schermer wrote:
> 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?
>
value won't be NULL since the full if condition is
if (value && strlen(value) > 0)
> if (value && *value != '\0') is also a good way to check if the string
> is 'empty'.
Yours should be more efficient since it will avoid a function call.
--
Jean-François Wauthy <pollux at xfce.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.xfce.org/pipermail/xfce-i18n/attachments/20080818/96ceb9b2/attachment.pgp>
More information about the Xfce-i18n
mailing list