Mercurial > pidgin.yaz
diff libpurple/protocols/mxit/profile.c @ 32365:e8d4755ef84b
Don't use strlen() when you're just checking whether a string is
empty
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Aug 2011 02:11:36 +0000 |
parents | 323876c34a96 |
children | 99ca503ea087 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/profile.c Mon Aug 22 02:07:41 2011 +0000 +++ b/libpurple/protocols/mxit/profile.c Mon Aug 22 02:11:36 2011 +0000 @@ -115,7 +115,7 @@ struct tm now, bdate; int age; - if ( ( !date ) || ( strlen( date ) == 0 ) ) + if ( ( !date ) || ( !*date ) ) return 0; /* current time */