[glib: 1/2] fix uninitial variable
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] fix uninitial variable
- Date: Mon, 27 Sep 2021 13:39:49 +0000 (UTC)
commit 2b8682191c14b1f6e35018f6de4a32d539810e93
Author: liuyangming <liuyangming uniontech com>
Date: Mon Sep 27 18:35:37 2021 +0800
fix uninitial variable
glib/gstdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gstdio.c b/glib/gstdio.c
index b570f9176..c04b6c28c 100644
--- a/glib/gstdio.c
+++ b/glib/gstdio.c
@@ -372,7 +372,7 @@ _g_win32_readlink_handle_raw (HANDLE h,
{
DWORD error_code;
DWORD returned_bytes = 0;
- BYTE *data;
+ BYTE *data = NULL;
gsize to_copy;
/* This is 16k. It's impossible to make DeviceIoControl() tell us
* the required size. NtFsControlFile() does have such a feature,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]