calejost / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

Compare a pointer as if it were a length #172

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Checking the code of the unimrcp modules for asterisk I have encountered an 
error
in the speech_channel_read function. The parameter len is a pointer and it's 
compared with 0 like if it's a length. I have used the same structure that is 
employed in speech_channel_write to solve the problem.

Original issue reported on code.google.com by lmontes1...@gmail.com on 8 Jul 2014 at 3:56

Attachments:

GoogleCodeExporter commented 8 years ago
You are right. I'd rather make that code a bit simpler, not sure what was the 
purpose of all those sanity checks. See r2143.

Thanks.

Original comment by achalo...@gmail.com on 10 Jul 2014 at 4:27