aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarfraaz Ahmed <asarfraaz@novell.com>2005-05-06 12:46:07 +0800
committerAhmed Sarfraaz <sarfraaz@src.gnome.org>2005-05-06 12:46:07 +0800
commita5b8cdfdbead7f6fbe3fdffb69e31f839a6e1b25 (patch)
treecf9430289a0434d3ae5fa1cf34ec5720ce88d1d4
parent1d785e092a5ec5996a1d45738622af7ef852fda7 (diff)
downloadgsoc2013-evolution-a5b8cdfdbead7f6fbe3fdffb69e31f839a6e1b25.tar.gz
gsoc2013-evolution-a5b8cdfdbead7f6fbe3fdffb69e31f839a6e1b25.tar.zst
gsoc2013-evolution-a5b8cdfdbead7f6fbe3fdffb69e31f839a6e1b25.zip
Check for NULL string before passing to dgettext. Fixes a crash on
2005-05-06 Sarfraaz Ahmed <asarfraaz@novell.com> * gal/e-table/e-table.c (et_real_construct) : Check for NULL string before passing to dgettext. Fixes a crash on Solaris. #260312. Patch submitted by Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> svn path=/trunk/; revision=29280
-rw-r--r--widgets/table/e-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index e604657abf..e1802f73be 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1521,7 +1521,7 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete,
e_table->use_click_to_add = specification->click_to_add;
e_table->use_click_to_add_end = specification->click_to_add_end;
- e_table->click_to_add_message = g_strdup (dgettext (e_table->domain, specification->click_to_add_message));
+ e_table->click_to_add_message = specification->click_to_add_message ? g_strdup (dgettext (e_table->domain, specification->click_to_add_message)) : NULL;
e_table->alternating_row_colors = specification->alternating_row_colors;
e_table->horizontal_draw_grid = specification->horizontal_draw_grid;
e_table->vertical_draw_grid = specification->vertical_draw_grid;