Fixed Bug #7248

http://hercules.ws/board/tracker/issue-7248-after-compiling-patches-from-1505-mapserver-crashed/
Signed-off-by: shennetsind <ind@henn.et>