fix crash when copying japaneese text to an xterm a=mcafee

This commit is contained in:
pavlov%netscape.com 1999-08-26 07:55:40 +00:00
parent 6fbe6ad816
commit c8ecb3f2e6

View File

@ -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)