From 332b93d3fb1584c8b3ca9597773301912a1fb5ce Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 7 May 2002 17:15:10 +0000 Subject: 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 --- camel/ChangeLog | 5 +++++ 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 + + * camel-object.c (camel_object_class_cast): Fix a crash in a + g_warning. + 2002-05-07 Not Zed * 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 * Michael Zucchi * - * 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; } -- cgit v1.2.3