Yes. The entire loop serves no purpose anyway. The sprintf will write the string starting at the address of the variable and then append a 0 on the end so clearing the string in this case does not change or help anything.
For the future, where the string or buffer must be cleared, memset can be more efficient.
John Z