I'd declare `char *tmp` here and use that instead of `default_name` to make it clear that this is a temporary variable with very limited scope.