After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 629215 - glib could use a string null or empty macro
glib could use a string null or empty macro
Status: RESOLVED DUPLICATE of bug 399880
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-09-09 19:45 UTC by Christian Hergert
Modified: 2010-09-10 09:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Hergert 2010-09-09 19:45:34 UTC
Something like

#define g_str_empty(s)  (strlen((s)) == 0)
#define g_str_empty0(s) (!(s) || g_str_empty((s)))
Comment 1 Christian Persch 2010-09-10 09:26:30 UTC

*** This bug has been marked as a duplicate of bug 399880 ***