DSDebug: null check after getenv and strdup