diff options
Diffstat (limited to 'e-util/e-import.c')
-rw-r--r-- | e-util/e-import.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |