From c8ecb3f2e6c0ccf7b2f406a7bc63a6c100a79111 Mon Sep 17 00:00:00 2001 From: "pavlov%netscape.com" Date: Thu, 26 Aug 1999 07:55:40 +0000 Subject: [PATCH] fix crash when copying japaneese text to an xterm a=mcafee --- widget/src/gtk/nsClipboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/gtk/nsClipboard.cpp b/widget/src/gtk/nsClipboard.cpp index 805cb076ff34..35e595ba1235 100644 --- a/widget/src/gtk/nsClipboard.cpp +++ b/widget/src/gtk/nsClipboard.cpp @@ -741,10 +741,10 @@ void nsClipboard::SelectionGetCB(GtkWidget *widget, g_print(" aInfo == %d -", aInfo); #endif - char* dataFlavor; + char* dataFlavor = nsnull; // switch aInfo (atom) to our enum - int type = TARGET_NONE; + int type = (int)aInfo; for (int i=0; i < TARGET_LAST; i++) { if (sSelTypes[i] == aInfo)