There is no need for this temporary variable; use "name" directly.

Also, declare it as "const char *name" so that the function doesn't accidentally modify it sometime in the future.