changeset 1020:f25b8ad338b4 refine_backend_if

Fix error on error checking for mb_timer_man_new()
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 13:57:59 +0800
parents 1a3cc22ee1bd
children 4f4abce1b5df
files src/animate.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/animate.c	Mon Nov 22 13:52:59 2010 +0800
+++ b/src/animate.c	Mon Nov 22 13:57:59 2010 +0800
@@ -452,7 +452,7 @@
     int r;
 
     timer_man = mb_timer_man_new(&tman_timer_factory);
-    CU_ASSERT(timer_man != NULL);
+    CU_ASSERT(timer_man != -1);
 
     tman = tman_timer_man_get_tman(timer_man);