aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-event.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-10 18:57:03 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-10 18:57:03 +0800
commit508aee66f947c5b9689262f9d523aeafa8d51ba2 (patch)
treed4533f5ef6094a18cf10003eba26b1b66b66f302 /e-util/e-event.c
parent07bec7e9f84a24801a92a877dd023e770e8e3058 (diff)
downloadgsoc2013-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-event.c')
-rw-r--r--e-util/e-event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/e-util/e-event.c b/e-util/e-event.c
index 44e75d99fa..293347e7b6 100644
--- a/e-util/e-event.c
+++ b/e-util/e-event.c
@@ -321,7 +321,10 @@ void *e_event_target_new(EEvent *ep, int type, size_t size)
{
EEventTarget *t;
- g_assert(size >= sizeof(EEventTarget));
+ if (size < sizeof(EEventTarget)) {
+ g_warning ("Size is less than the size of EEventTarget\n");
+ size = sizeof(EEventTarget);
+ }
t = g_malloc0(size);
t->event = ep;