[glib: 2/10] Fix non-initialized variable and pointer casted to int in tests/gio-test.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/10] Fix non-initialized variable and pointer casted to int in tests/gio-test.c
- Date: Fri, 18 Feb 2022 13:39:26 +0000 (UTC)
commit 5f5a4a74b47415d127d15a9d027ed27351ab7cf2
Author: Loic Le Page <llepage fluendo com>
Date: Wed Jan 19 19:10:29 2022 +0100
Fix non-initialized variable and pointer casted to int in tests/gio-test.c
tests/gio-test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/gio-test.c b/tests/gio-test.c
index 6c40632b3..d203d0b27 100644
--- a/tests/gio-test.c
+++ b/tests/gio-test.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]