remote: make sure the name stays valid on rename
We must make sure that the name pointer remains valid, so make sure to allocate the new one before freeing the old one and swap them so the user never sees an invalid pointer.
Showing
Please
register
or
sign in
to comment