Assignment of function parameter has no effect outside the function.

Found by Cppcheck

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Merge pull request #8 from YueLinHo/master