Fix error that caused seek format operations to set max file size to '1' or '0'
[asterisk/asterisk.git] / formats / format_sln.c
index b90f6b2..9820544 100644 (file)
@@ -86,7 +86,7 @@ static int slinear_seek(struct ast_filestream *fs, off_t sample_offset, int when
                return -1;
        }
 
-       if ((max = ftello(fs->f) < 0)) {
+       if ((max = ftello(fs->f)) < 0) {
                ast_log(AST_LOG_WARNING, "Unable to determine max position in sln filestream %p: %s\n", fs, strerror(errno));
                return -1;
        }