Unregister format says it's already unregistered
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 13 Apr 2006 17:22:16 +0000 (17:22 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 13 Apr 2006 17:22:16 +0000 (17:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19811 65c4cc65-6c06-0410-ace0-fbb531ad65f3

file.c

diff --git a/file.c b/file.c
index a393005..b55c954 100644 (file)
--- a/file.c
+++ b/file.c
@@ -132,7 +132,7 @@ int ast_format_unregister(const char *name)
        AST_LIST_TRAVERSE_SAFE_END
        AST_LIST_UNLOCK(&formats);
 
-       if (tmp) {
+       if (!res) {
                if (option_verbose > 1)
                        ast_verbose( VERBOSE_PREFIX_2 "Unregistered format %s\n", name);
        } else