From 8410bbf7bf62d9bacc55a2ec518d36803286f9be Mon Sep 17 00:00:00 2001
From: Tilghman Lesher <tilghman@meg.abyt.es>
Date: Thu, 13 Apr 2006 17:22:16 +0000
Subject: [PATCH] Unregister format says it's already unregistered

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/file.c b/file.c
index a393005197..b55c9546e8 100644
--- 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
-- 
GitLab