From 818fcb034e5df3a3e4a5464de7eaf7b57e34cf45 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Tue, 12 Aug 2008 23:34:51 -0700 Subject: Fixed an error in my assert statements --- src/plist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plist.c b/src/plist.c index c86e166..e0ca653 100644 --- a/src/plist.c +++ b/src/plist.c @@ -49,8 +49,8 @@ char* format_string(const char* buf, int cols, int depth) int i = 0; int j = 0; - assert(cols > 0); - assert(depth > 0); + assert(cols >= 0); + assert(depth >= 0); // Inserts new lines and tabs at appropriate locations for (i = 0; i < nlines; i++){ @@ -114,7 +114,7 @@ xmlNode *add_child_to_plist(xmlDocPtr plist, const char *name, const char *conte xmlNode *child; if (!plist) return NULL; - assert(depth > 0); + assert(depth >= 0); if (!to_node) to_node = xmlDocGetRootElement(plist); for (i = 0; i < depth; i++) { -- cgit v1.1-32-gdbae