// A "safe" implementation of strdup. Allow null pointer to be passed. // Also avoid warning on msvc80.