[empathy] field_value_is_empty: if the first element is not NULL field is not empty



commit 0c55599ad0a3210c60d37938b27225c607fc53fe
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Sep 28 16:08:27 2010 +0200

    field_value_is_empty: if the first element is not NULL field is not empty

 libempathy-gtk/empathy-contact-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 8734210..e80c964 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -153,7 +153,7 @@ field_value_is_empty (TpContactInfoField *field)
   if (field->field_value == NULL)
     return TRUE;
 
-  return EMP_STR_EMPTY (field->field_value[0]);
+  return field->field_value[0] == NULL;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]