[empathy] empathy_account_settings_get_uint32: check if empathy_account_settings_get returned NULL (#594653)



commit 589b9b1d4e4fada570004c9f9d8b9e1b85501cda
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Sep 9 16:55:21 2009 +0100

    empathy_account_settings_get_uint32: check if empathy_account_settings_get returned NULL (#594653)

 libempathy/empathy-account-settings.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 49eb633..bd62191 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -734,6 +734,8 @@ empathy_account_settings_get_uint32 (EmpathyAccountSettings *settings,
   guint32 ret;
 
   v = empathy_account_settings_get (settings, param);
+  if (v == NULL)
+    return 0;
 
   switch G_VALUE_TYPE (v)
     {



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