summaryrefslogtreecommitdiff
path: root/formats/format_g719.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2012-04-29 19:50:57 +0000
committerMatthew Jordan <mjordan@digium.com>2012-04-29 19:50:57 +0000
commit60d9ca687cae3506d6c4f25982ff803acd3fb879 (patch)
tree25cb1c0ebdd9b1540dde54e24a324b341d3a2ae4 /formats/format_g719.c
parent2cbcbc7f6b222cca3e805d37c2c6ab73bce6b6d1 (diff)
Fix error that caused truncate operations to fail
Another very inappropriate placement of a ')' (again introduced in r362151) caused the various truncate operations to attempt to truncate the sound file at a position of '0'. (issue ASTERISK-19655) Reported by: Matt Jordan (issue ASTERISK-19810) Reported by: colbec ........ Merged revisions 364578 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 364579 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@364580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_g719.c')
-rw-r--r--formats/format_g719.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_g719.c b/formats/format_g719.c
index 0a0eea170..ee9221230 100644
--- a/formats/format_g719.c
+++ b/formats/format_g719.c
@@ -122,7 +122,7 @@ static int g719trunc(struct ast_filestream *fs)
ast_log(AST_LOG_WARNING, "Unable to determine file descriptor for g719 filestream %p: %s\n", fs, strerror(errno));
return -1;
}
- if ((cur = ftello(fs->f) < 0)) {
+ if ((cur = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine current position in g719 filestream %p: %s\n", fs, strerror(errno));
return -1;
}