Bug 27412

Summary: add tp_str_empty
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: tp-glibAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: low    
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/smcv/telepathy-glib-smcv.git;a=shortlog;h=refs/heads/trivia
Whiteboard:
i915 platform: i915 features:

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.