mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-01 08:52:18 +01:00
giowin32: Fix uninitialised variable error on msys2-clang64
I guess a compiler upgrade on msys2 has happened, because this wasn’t a
problem before, and the code hasn’t changed.
Fixes the warning:
```
../glib/giowin32.c:1828:47: error: variable 'c' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
1828 | channel->is_writeable = WriteFile (handle, &c, 0, &count, NULL);
| ^
1 error generated.
```
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -1820,7 +1820,7 @@ g_io_win32_console_get_flags_internal (GIOChannel *channel)
|
||||
{
|
||||
GIOWin32Channel *win32_channel = (GIOWin32Channel *) channel;
|
||||
HANDLE handle = (HANDLE) _get_osfhandle (win32_channel->fd);
|
||||
gchar c;
|
||||
gchar c = 0;
|
||||
DWORD count;
|
||||
INPUT_RECORD record;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user