Added a memset() to prevent a debugger segfault caused by