account_widget_generic_format_param_name: make sure param_name is not NULL
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 6 Feb 2012 14:39:46 +0000 (15:39 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 6 Feb 2012 14:39:48 +0000 (15:39 +0100)
This should make the clang analyzer happier.

libempathy-gtk/empathy-account-widget.c

index 0de4dc80fa37350868701f7dd5ceb1bfdc2263c1..375d6246d5f6ba23ad2165a37562c4402f5254d0 100644 (file)
@@ -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 ();