aboutsummaryrefslogtreecommitdiffstats
path: root/frame.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-06 02:32:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-06 02:32:23 +0000
commit05148809847d5647ae7448ed1965f94d916a3350 (patch)
treefa1f44a5cf6ab336657bd169d08446291b187b90 /frame.c
parent72f040281b09f8ad7c44558ea46e28fa6dee0565 (diff)
re-add a couple of lines that I shouldn't have removed in the previous commit.
I think I should be going to bed now ... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25165 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'frame.c')
-rw-r--r--frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/frame.c b/frame.c
index cef3b8a83..a43a9834d 100644
--- 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);