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:
Philip Withnall
2025-09-23 16:09:38 +01:00
parent 2eb853a40d
commit 2414ca69d2

View File

@@ -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;