diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-13 22:45:44 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-13 22:45:44 +0000 |
commit | 72f5cefffd2a92c8fdb1d6bbdd4731714703aed1 (patch) | |
tree | 8d4a1e339ffc75563f41752f3792cfd0127e6d80 /main | |
parent | c51f811db8c658cb4e66275f66d660f478dd5422 (diff) |
Tweak changes that went in on revision 42891
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42910 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/loader.c b/main/loader.c index 3b0005a6a..48f945438 100644 --- a/main/loader.c +++ b/main/loader.c @@ -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; } |