]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
re-add a couple of lines that I shouldn't have removed in the previous commit.
authorRussell Bryant <russell@russellbryant.com>
Sat, 6 May 2006 02:32:23 +0000 (02:32 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 6 May 2006 02:32:23 +0000 (02:32 +0000)
I think I should be going to bed now ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25165 65c4cc65-6c06-0410-ace0-fbb531ad65f3

frame.c

diff --git a/frame.c b/frame.c
index cef3b8a832a44ffb96dadb7633a1c6173873ea8a..a43a9834d75c9701202595f42341564d09406152 100644 (file)
--- a/frame.c
+++ b/frame.c
@@ -326,7 +326,8 @@ struct ast_frame *ast_frisolate(struct ast_frame *fr)
        if (!(fr->mallocd & AST_MALLOCD_SRC)) {
                if (fr->src)
                        out->src = strdup(fr->src);
-       }
+       } else
+               out->src = fr->src;
        
        if (!(fr->mallocd & AST_MALLOCD_DATA))  {
                newdata = malloc(fr->datalen + AST_FRIENDLY_OFFSET);