mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
Fix non-initialized variable and pointer casted to int in tests/gio-test.c
This commit is contained in:
parent
2d5c6fc520
commit
5f5a4a74b4
@ -128,7 +128,7 @@ recv_message (GIOChannel *channel,
|
||||
if (cond & G_IO_IN)
|
||||
{
|
||||
char buf[BUFSIZE];
|
||||
guint nbytes;
|
||||
guint nbytes = 0;
|
||||
guint nb;
|
||||
guint j;
|
||||
int i, seq;
|
||||
@ -297,7 +297,7 @@ main (int argc,
|
||||
exit (1);
|
||||
}
|
||||
|
||||
windows_messages_channel = g_io_channel_win32_new_messages ((guint)hwnd);
|
||||
windows_messages_channel = g_io_channel_win32_new_messages ((guint) (guintptr) hwnd);
|
||||
g_io_add_watch (windows_messages_channel, G_IO_IN, recv_windows_message, 0);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user