avoid strcmp NULL, fix segv on mingw