mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
fix crash when copying japaneese text to an xterm a=mcafee
This commit is contained in:
parent
6fbe6ad816
commit
c8ecb3f2e6
@ -741,10 +741,10 @@ void nsClipboard::SelectionGetCB(GtkWidget *widget,
|
|||||||
g_print(" aInfo == %d -", aInfo);
|
g_print(" aInfo == %d -", aInfo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* dataFlavor;
|
char* dataFlavor = nsnull;
|
||||||
|
|
||||||
// switch aInfo (atom) to our enum
|
// switch aInfo (atom) to our enum
|
||||||
int type = TARGET_NONE;
|
int type = (int)aInfo;
|
||||||
for (int i=0; i < TARGET_LAST; i++)
|
for (int i=0; i < TARGET_LAST; i++)
|
||||||
{
|
{
|
||||||
if (sSelTypes[i] == aInfo)
|
if (sSelTypes[i] == aInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user