Bug 27412 - add tp_str_empty
Summary: add tp_str_empty
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: low enhancement
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/sm...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 06:02 UTC by Simon McVittie
Modified: 2010-04-01 07:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2010-04-01 06:02:15 UTC
Everyone who uses telepathy-glib seems to have decided that (s == NULL || *s == '\0') is too hard to type and invented a FOO_STR_EMPTY() macro, so we might as well put one in telepathy-glib and be done with it...
Comment 1 Guillaume Desmottes 2010-04-01 07:31:09 UTC
+ * Return true if @s is empty, counting %NULL as empty.

Shouldn't we use %TRUE?

Comment 2 Simon McVittie 2010-04-01 07:42:08 UTC
(In reply to comment #1)
> Shouldn't we use %TRUE?

Yes, done. Fixed in git for 0.11.1.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.