fix: use strdup() instead of dummy affectation