diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-02-06 22:39:46 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-02-06 22:39:48 +0800 |
commit | b8e7456de34fde39587b8a9429329b8867b10421 (patch) | |
tree | b1cb22f1bfd4fe6c0479ea35f8931b7ba0d84227 /libempathy-gtk | |
parent | 8d3dda852b7eb0e8790812b0e149d40db24dbc41 (diff) | |
download | gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.tar gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.tar.gz gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.tar.bz2 gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.tar.lz gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.tar.xz gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.tar.zst gsoc2013-empathy-b8e7456de34fde39587b8a9429329b8867b10421.zip |
account_widget_generic_format_param_name: make sure param_name is not NULL
This should make the clang analyzer happier.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 0de4dc80f..375d6246d 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 (); |