diff options
author | Sarfraaz Ahmed <asarfraaz@novell.com> | 2005-05-06 12:47:19 +0800 |
---|---|---|
committer | Ahmed Sarfraaz <sarfraaz@src.gnome.org> | 2005-05-06 12:47:19 +0800 |
commit | 21a815d86fbe90d33e7713d878147cce00df34fd (patch) | |
tree | bb404e31d5448d556bd3de659c57db601e0fdf79 /widgets/misc | |
parent | a5b8cdfdbead7f6fbe3fdffb69e31f839a6e1b25 (diff) | |
download | gsoc2013-evolution-21a815d86fbe90d33e7713d878147cce00df34fd.tar.gz gsoc2013-evolution-21a815d86fbe90d33e7713d878147cce00df34fd.tar.zst gsoc2013-evolution-21a815d86fbe90d33e7713d878147cce00df34fd.zip |
Solaris gettext crashes on NULL input string. Fixes #260312. Patch
2005-05-06 Sarfraaz Ahmed <asarfraaz@novell.com>
* misc/e-search-bar.c: (set_menu) Solaris gettext crashes on NULL
input string. Fixes #260312. Patch submitted by
Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
svn path=/trunk/; revision=29282
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-search-bar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c index cdf4b37113..72a4494dc4 100644 --- a/widgets/misc/e-search-bar.c +++ b/widgets/misc/e-search-bar.c @@ -603,7 +603,7 @@ set_menu (ESearchBar *esb, g_assert (items[i].subitems == NULL); new_item = g_new (ESearchBarItem, 1); - new_item->text = g_strdup (_(items[i].text)); + new_item->text = items[i].text ? g_strdup (_(items[i].text)) : NULL; new_item->id = items[i].id; new_item->subitems = NULL; |