diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-09-09 23:55:21 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-09-09 23:55:21 +0800 |
commit | 589b9b1d4e4fada570004c9f9d8b9e1b85501cda (patch) | |
tree | 145514a341edf15fb2bab5a5722fef23ea315bb0 | |
parent | 46db0404512f9970483af8878ed826c43693c1b3 (diff) | |
download | gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.tar gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.tar.gz gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.tar.bz2 gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.tar.lz gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.tar.xz gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.tar.zst gsoc2013-empathy-589b9b1d4e4fada570004c9f9d8b9e1b85501cda.zip |
empathy_account_settings_get_uint32: check if empathy_account_settings_get returned NULL (#594653)
-rw-r--r-- | 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 49eb63366..bd62191ad 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) { |