[empathy] account_widget_generic_format_param_name: make sure param_name is not NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] account_widget_generic_format_param_name: make sure param_name is not NULL
- Date: Mon, 6 Feb 2012 15:10:14 +0000 (UTC)
commit b8e7456de34fde39587b8a9429329b8867b10421
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Feb 6 15:39:46 2012 +0100
account_widget_generic_format_param_name: make sure param_name is not NULL
This should make the clang analyzer happier.
libempathy-gtk/empathy-account-widget.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 0de4dc8..375d624 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -694,6 +694,8 @@ account_widget_generic_format_param_name (const gchar *param_name)
gchar *p;
static GHashTable *translated_params = NULL;
+ g_return_val_if_fail (param_name != NULL, NULL);
+
if (G_UNLIKELY (translated_params == NULL))
translated_params = build_translated_params ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]