[glib: 6/10] Fix global variable name hidden by local variables in glib/gwin32-private.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/10] Fix global variable name hidden by local variables in glib/gwin32-private.c
- Date: Fri, 18 Feb 2022 13:39:26 +0000 (UTC)
commit de8ab33cb57fde5e1d507d3bc6085823477d10df
Author: Loic Le Page <llepage fluendo com>
Date: Wed Jan 19 18:19:41 2022 +0100
Fix global variable name hidden by local variables in glib/gwin32-private.c
glib/gwin32-private.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/glib/gwin32-private.c b/glib/gwin32-private.c
index c28e92baa..68d4703b5 100644
--- a/glib/gwin32-private.c
+++ b/glib/gwin32-private.c
@@ -23,7 +23,7 @@
* than `e` or `p`.
*/
static gboolean
-_g_win32_subst_pid_and_event_w (wchar_t *debugger,
+_g_win32_subst_pid_and_event_w (wchar_t *local_debugger,
gsize debugger_size,
const wchar_t *cmdline,
DWORD pid,
@@ -51,26 +51,26 @@ _g_win32_subst_pid_and_event_w (wchar_t *debugger,
while (cmdline[i] != 0 && dbg_i < debugger_size)
{
if (cmdline[i] != L'%')
- debugger[dbg_i++] = cmdline[i++];
+ local_debugger[dbg_i++] = cmdline[i++];
else if (cmdline[i + 1] == L'p')
{
gsize j = 0;
while (j < pid_str_len && dbg_i < debugger_size)
- debugger[dbg_i++] = pid_str[j++];
+ local_debugger[dbg_i++] = pid_str[j++];
i += 2;
}
else if (cmdline[i + 1] == L'e')
{
gsize j = 0;
while (j < event_str_len && dbg_i < debugger_size)
- debugger[dbg_i++] = event_str[j++];
+ local_debugger[dbg_i++] = event_str[j++];
i += 2;
}
else
return FALSE;
}
if (dbg_i < debugger_size)
- debugger[dbg_i] = 0;
+ local_debugger[dbg_i] = 0;
else
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]