aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-import.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-import.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-import.c')
-rw-r--r--e-util/e-import.c5
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;