From b8e7456de34fde39587b8a9429329b8867b10421 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 6 Feb 2012 15:39:46 +0100 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 0de4dc80..375d6246 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 (); -- 2.39.2