Fixed a NULL-pointer-strcmp bug