[Gnucash-changes] Fix a couple of asserts added at the last minute.
David Hampton
hampton at cvs.gnucash.org
Sun Apr 24 18:21:28 EDT 2005
Log Message:
-----------
Fix a couple of asserts added at the last minute.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash/src/core-utils:
gnc-gconf-utils.c
Revision Data
-------------
Index: gnc-gconf-utils.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/core-utils/Attic/gnc-gconf-utils.c,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -Lsrc/core-utils/gnc-gconf-utils.c -Lsrc/core-utils/gnc-gconf-utils.c -u -r1.1.2.1 -r1.1.2.2
--- src/core-utils/gnc-gconf-utils.c
+++ src/core-utils/gnc-gconf-utils.c
@@ -56,7 +56,7 @@
{
gchar *section_path, *key;
- g_assert ((section != NULL) && (name != NULL));
+ g_assert ((section != NULL) || (name != NULL));
if (section == NULL) {
if (*name == '/')
@@ -341,7 +341,7 @@
gchar *path, *client_tag, *notify_tag;
guint id;
- g_return_if_fail(!G_IS_OBJECT(object));
+ g_return_if_fail(G_IS_OBJECT(object));
g_return_if_fail(section != NULL);
g_return_if_fail(callback != NULL);
@@ -393,7 +393,7 @@
gchar *path, *client_tag, *notify_tag;
guint id;
- g_return_if_fail(!G_IS_OBJECT(object));
+ g_return_if_fail(G_IS_OBJECT(object));
g_return_if_fail(section != NULL);
/*
More information about the gnucash-changes
mailing list