diff options
author | Dan Winship <danw@src.gnome.org> | 2002-05-08 01:15:10 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-05-08 01:15:10 +0800 |
commit | 332b93d3fb1584c8b3ca9597773301912a1fb5ce (patch) | |
tree | e1708431c55e0db8109c0c75555e504eba61d2b3 /camel | |
parent | ee4d8e5cb0d4b235ab9b813836a4024047ee1fb1 (diff) | |
download | gsoc2013-evolution-332b93d3fb1584c8b3ca9597773301912a1fb5ce.tar.gz gsoc2013-evolution-332b93d3fb1584c8b3ca9597773301912a1fb5ce.tar.zst gsoc2013-evolution-332b93d3fb1584c8b3ca9597773301912a1fb5ce.zip |
Fix a crash in a g_warning.
* camel-object.c (camel_object_class_cast): Fix a crash in a
g_warning.
svn path=/trunk/; revision=16705
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-object.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 4bd0a9329e..b4311b413d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2002-05-07 Dan Winship <danw@ximian.com> + + * camel-object.c (camel_object_class_cast): Fix a crash in a + g_warning. + 2002-05-07 Not Zed <NotZed@Ximian.com> * camel-remote-store.c (remote_send_string): Check for LOGIN xxxx diff --git a/camel/camel-object.c b/camel/camel-object.c index cb21b58f0d..48a77971f7 100644 --- a/camel/camel-object.c +++ b/camel/camel-object.c @@ -1,10 +1,9 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * * Author: - * Dan Winship <danw@ximian.com> * Michael Zucchi <notzed@ximian.com> * - * Copyright 2000 Ximian, Inc. (www.ximian.com) + * Copyright 2000-2002 Ximian, Inc. (www.ximian.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -550,7 +549,7 @@ camel_object_cast(CamelObject *o, CamelType ctype) k = k->parent; } - g_warning("Object %p (class '%s') doesn't have '%s' in its heirachy", o, o->klass->name, ctype->name); + g_warning("Object %p (class '%s') doesn't have '%s' in its hierarchy", o, o->klass->name, ctype->name); return NULL; } @@ -568,7 +567,7 @@ camel_object_class_cast(CamelObjectClass *k, CamelType ctype) k = k->parent; } - g_warning("Class '%s' doesn't have '%s' in its heirarchy", k->name, ctype->name); + g_warning("Class '%s' doesn't have '%s' in its hierarchy", r->name, ctype->name); return NULL; } |