Merge pull request #229 from humrochagf/master

Removed assigned but never used total_len variable