diff options
-rw-r--r-- | widgets/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/misc/e-search-bar.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog index e17316dd30..09fe5ea3eb 100644 --- a/widgets/ChangeLog +++ b/widgets/ChangeLog @@ -1,3 +1,9 @@ +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> + 2005-04-28 Li Yuan <li.yuan@sun.com> * misc/e-calendar-item.c: (e_calendar_item_realize), 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; |