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-popup.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-popup.c')
-rw-r--r-- | e-util/e-popup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/e-util/e-popup.c b/e-util/e-popup.c index 8d6922404c..5492ca1067 100644 --- a/e-util/e-popup.c +++ b/e-util/e-popup.c @@ -645,7 +645,10 @@ void *e_popup_target_new(EPopup *ep, int type, size_t size) { EPopupTarget *t; - g_assert(size >= sizeof(EPopupTarget)); + if (size < sizeof(EPopupTarget)) { + g_warning ("Size is less than the size of EPopupTarget\n"); + size = sizeof(EPopupTarget); + } t = g_malloc0(size); t->popup = ep; |