From 508aee66f947c5b9689262f9d523aeafa8d51ba2 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Mon, 10 Sep 2007 10:57:03 +0000 Subject: ** Fix for bug #471791 svn path=/trunk/; revision=34214 --- e-util/e-import.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'e-util/e-import.c') diff --git a/e-util/e-import.c b/e-util/e-import.c index 144c62969f..2ca5ad5f1e 100644 --- a/e-util/e-import.c +++ b/e-util/e-import.c @@ -351,7 +351,10 @@ void *e_import_target_new(EImport *ep, int type, size_t size) { EImportTarget *t; - g_assert(size >= sizeof(EImportTarget)); + if (size < sizeof(EImportTarget)) { + g_warning ("Size less than size of EImportTarget\n"); + size = sizeof (EImportTarget); + } t = g_malloc0(size); t->import = ep; -- cgit v1.2.3