Corrected a const pointer being incorrectly initialized

- Fixes bugreport:7804, thanks to kyeme
  http://hercules.ws/board/tracker/issue-7804-warning-c4090-function

Signed-off-by: Haru <haru@dotalux.com>