aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-popup.c')
-rw-r--r--e-util/e-popup.c5
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;