]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Tweak changes that went in on revision 42891
authorJoshua Colp <jcolp@digium.com>
Wed, 13 Sep 2006 22:45:44 +0000 (22:45 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 13 Sep 2006 22:45:44 +0000 (22:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42910 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/loader.c

index 3b0005a6aaae5009af5399dd37bc609e5a7de396..48f94543817cf6ab18df714bde572fa314d0949d 100644 (file)
@@ -200,13 +200,13 @@ struct ast_module_user *__ast_module_user_add(struct ast_module *mod,
 void __ast_module_user_remove(struct ast_module *mod, struct ast_module_user *u)
 {
 
-       if (u <= 0) {   
-               ast_log(LOG_ERROR,"ast_module_user invalid can not remove \n");         
+       if (!u) {
+               ast_log(LOG_ERROR, "ast_module_user is invalid can not remove\n");              
                return;
        }
 
-       if (mod <= 0) {
-               ast_log(LOG_ERROR,"ast_module invalid can not remove \n");
+       if (!mod) {
+               ast_log(LOG_ERROR, "ast_module is invalid can not remove\n");
                return;
        }