From 17d5fce6da802b46dc905fd48e05eb2423d078f0 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 22 Mar 2010 14:50:32 +0000 Subject: [PATCH] rrdcached: Do not put any code in assert(). -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2036 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index b290bcc..ba9c2ad 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -821,9 +821,10 @@ static int flush_old_values (int max_age) for (k = 0; k < cfd.keys_num; k++) { + gboolean status = g_tree_remove(cache_tree, cfd.keys[k]); /* should never fail, since we have held the cache_lock * the entire time */ - assert( g_tree_remove(cache_tree, cfd.keys[k]) == TRUE ); + assert(status == TRUE); } if (cfd.keys != NULL) -- 2.11.0