Fix format unregister
authorJames Golovich <james@gnuinter.net>
Wed, 21 Apr 2004 03:53:15 +0000 (03:53 +0000)
committerJames Golovich <james@gnuinter.net>
Wed, 21 Apr 2004 03:53:15 +0000 (03:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2725 65c4cc65-6c06-0410-ace0-fbb531ad65f3

file.c

diff --git a/file.c b/file.c
index 9cdaec5..249dd4e 100755 (executable)
--- a/file.c
+++ b/file.c
@@ -153,6 +153,7 @@ int ast_format_unregister(char *name)
                                ast_verbose( VERBOSE_PREFIX_2 "Unregistered format %s\n", name);
                        return 0;
                }
+               tmpl = tmp;
                tmp = tmp->next;
        }
        ast_log(LOG_WARNING, "Tried to unregister format %s, already unregistered\n", name);