From 503df48c32b0edbf3999dabd07dfd8f251dc55d9 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 23 Mar 2005 04:22:39 +0000 Subject: [PATCH] Bug 280740 Installer crashes in choose install components dialog patch by sunil@atc.tcs.co.in r=bryner sr=dveditz git-svn-id: svn://10.0.0.236/trunk@171038 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpinstall/wizard/unix/src2/nsComponentsDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/xpinstall/wizard/unix/src2/nsComponentsDlg.cpp b/mozilla/xpinstall/wizard/unix/src2/nsComponentsDlg.cpp index fdefc2f922e..5e86fb42c79 100644 --- a/mozilla/xpinstall/wizard/unix/src2/nsComponentsDlg.cpp +++ b/mozilla/xpinstall/wizard/unix/src2/nsComponentsDlg.cpp @@ -308,7 +308,7 @@ nsComponentsDlg::Show() GdkPixmap *checked = NULL; GdkBitmap *un_mask = NULL; GdkPixmap *unchecked = NULL; - gchar *dummy = ""; + gchar *dummy[2] = { " ", " " }; nsComponent *currComp = sCustomST->GetComponents()->GetHead(); GtkWidget *descLongTable = NULL; GtkWidget *frame = NULL; @@ -327,7 +327,7 @@ nsComponentsDlg::Show() // determine number of rows we'll need numRows = sCustomST->GetComponents()->GetLengthVisible(); for (i = 0; i < numRows; i++) - gtk_clist_append(GTK_CLIST(list), &dummy); + gtk_clist_append(GTK_CLIST(list), dummy); style = gtk_widget_get_style(gCtx->window); checked = gdk_pixmap_create_from_xpm_d(gCtx->window->window, &ch_mask,