Commit 532062df authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

Applied patch from Ross McFarland <rwmcfa1@neces.com>, initialize *count_p

Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>

        * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
        Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
        before doing anything to prevent garbage returns.
parent 8ad788e9
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
before doing anything to prevent garbage returns.
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de> Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c: Implement RTL flipping for * gtk/gtkviewport.c: Implement RTL flipping for
......
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
before doing anything to prevent garbage returns.
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de> Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c: Implement RTL flipping for * gtk/gtkviewport.c: Implement RTL flipping for
......
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
before doing anything to prevent garbage returns.
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de> Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c: Implement RTL flipping for * gtk/gtkviewport.c: Implement RTL flipping for
......
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
before doing anything to prevent garbage returns.
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de> Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c: Implement RTL flipping for * gtk/gtkviewport.c: Implement RTL flipping for
......
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
before doing anything to prevent garbage returns.
Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de> Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c: Implement RTL flipping for * gtk/gtkviewport.c: Implement RTL flipping for
......
...@@ -443,6 +443,8 @@ quick_accel_find (GtkAccelGroup *accel_group, ...@@ -443,6 +443,8 @@ quick_accel_find (GtkAccelGroup *accel_group,
GtkAccelGroupEntry *entry; GtkAccelGroupEntry *entry;
GtkAccelGroupEntry key; GtkAccelGroupEntry key;
*count_p = 0;
if (!accel_group->n_accels) if (!accel_group->n_accels)
return NULL; return NULL;
...@@ -460,7 +462,7 @@ quick_accel_find (GtkAccelGroup *accel_group, ...@@ -460,7 +462,7 @@ quick_accel_find (GtkAccelGroup *accel_group,
entry[-1].key.accel_mods != accel_mods) entry[-1].key.accel_mods != accel_mods)
break; break;
/* count equal members */ /* count equal members */
for (*count_p = 0; entry + *count_p < accel_group->priv_accels + accel_group->n_accels; (*count_p)++) for (; entry + *count_p < accel_group->priv_accels + accel_group->n_accels; (*count_p)++)
if (entry[*count_p].key.accel_key != accel_key || if (entry[*count_p].key.accel_key != accel_key ||
entry[*count_p].key.accel_mods != accel_mods) entry[*count_p].key.accel_mods != accel_mods)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment