[libbonoboui] Skip unknown accelerators. Patch from Jeff Cai. Closes bug #598362.
- From: Kjartan Maraas <kmaraas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libbonoboui] Skip unknown accelerators. Patch from Jeff Cai. Closes bug #598362.
- Date: Sat, 17 Oct 2009 11:14:51 +0000 (UTC)
commit 39408d52272bb575759b2d155bf035e286ce9155
Author: Kjartan Maraas <kmaraas gnome org>
Date: Sat Oct 17 13:14:43 2009 +0200
Skip unknown accelerators. Patch from Jeff Cai. Closes bug #598362.
bonobo/bonobo-ui-util.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/bonobo/bonobo-ui-util.c b/bonobo/bonobo-ui-util.c
index 99b56a4..bba0f02 100644
--- a/bonobo/bonobo-ui-util.c
+++ b/bonobo/bonobo-ui-util.c
@@ -1251,6 +1251,10 @@ bonobo_ui_util_accel_parse (const char *accelerator,
gchar last_ch;
last_ch = *accelerator;
+ if (!last_ch || last_ch == DELIM_POST) {
+ g_warning ("Unknown accelerator - '%s'", accelerator);
+ return;
+ }
while (last_ch && last_ch != DELIM_POST)
{
last_ch = *accelerator;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]