[Telepathy-commits] [telepathy-salut/master] Added G_STR_EMPTY helper method.

Jonny Lamb jonny.lamb at collabora.co.uk
Fri Nov 21 03:46:03 PST 2008


20080721132221-8ed0e-74cc6dc26682ef1b430ea482918c9cd16892c4c2.gz
---
 src/salut-file-channel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/salut-file-channel.c b/src/salut-file-channel.c
index b97f38d..d17c240 100644
--- a/src/salut-file-channel.c
+++ b/src/salut-file-channel.c
@@ -62,6 +62,8 @@ G_DEFINE_TYPE_WITH_CODE (SalutFileChannel, salut_file_channel, G_TYPE_OBJECT,
                            file_transfer_iface_init);
 );
 
+#define G_STR_EMPTY(x) ((x) == NULL || (x)[0] == '\0')
+
 /* signal enum */
 /*
 enum
-- 
1.5.6.5




More information about the Telepathy-commits mailing list