Fix error that caused seek format operations to set max file size to '1' or '0'
[asterisk/asterisk.git] / formats / format_siren14.c
index 08c2cbf..f3e53e7 100644 (file)
@@ -92,7 +92,7 @@ static int siren14seek(struct ast_filestream *fs, off_t sample_offset, int whenc
                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 siren14 filestream %p: %s\n", fs, strerror(errno));
                return -1;
        }