diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-09-10 18:57:03 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-09-10 18:57:03 +0800 |
commit | 508aee66f947c5b9689262f9d523aeafa8d51ba2 (patch) | |
tree | d4533f5ef6094a18cf10003eba26b1b66b66f302 /e-util/e-menu.c | |
parent | 07bec7e9f84a24801a92a877dd023e770e8e3058 (diff) | |
download | gsoc2013-evolution-508aee66f947c5b9689262f9d523aeafa8d51ba2.tar.gz gsoc2013-evolution-508aee66f947c5b9689262f9d523aeafa8d51ba2.tar.zst gsoc2013-evolution-508aee66f947c5b9689262f9d523aeafa8d51ba2.zip |
** Fix for bug #471791
svn path=/trunk/; revision=34214
Diffstat (limited to 'e-util/e-menu.c')
-rw-r--r-- | e-util/e-menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/e-util/e-menu.c b/e-util/e-menu.c index c4cfe894ed..4ef45dbe03 100644 --- a/e-util/e-menu.c +++ b/e-util/e-menu.c @@ -542,7 +542,10 @@ void *e_menu_target_new(EMenu *ep, int type, size_t size) { EMenuTarget *t; - g_assert(size >= sizeof(EMenuTarget)); + if (size < sizeof(EMenuTarget)) { + g_warning ("size less than size of EMenuTarget\n"); + size = sizeof (EMenuTarget); + } t = g_malloc0(size); t->menu = ep; |