mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	Fix non-initialized variable and pointer casted to int in tests/gio-test.c
This commit is contained in:
		
				
					committed by
					
						 Loïc Le Page
						Loïc Le Page
					
				
			
			
				
	
			
			
			
						parent
						
							2d5c6fc520
						
					
				
				
					commit
					5f5a4a74b4
				
			| @@ -128,7 +128,7 @@ recv_message (GIOChannel  *channel, | |||||||
|   if (cond & G_IO_IN) |   if (cond & G_IO_IN) | ||||||
|     { |     { | ||||||
|       char buf[BUFSIZE]; |       char buf[BUFSIZE]; | ||||||
|       guint nbytes; |       guint nbytes = 0; | ||||||
|       guint nb; |       guint nb; | ||||||
|       guint j; |       guint j; | ||||||
|       int i, seq; |       int i, seq; | ||||||
| @@ -297,7 +297,7 @@ main (int    argc, | |||||||
| 	  exit (1); | 	  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); |       g_io_add_watch (windows_messages_channel, G_IO_IN, recv_windows_message, 0); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user