diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-06 15:57:37 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-06 15:57:37 +0200 |
commit | 61dcfe1400a5ff1cf4dc805795cb72657c524906 (patch) | |
tree | 1a195f643e79ccb72b1dee1d24472a5e34cd4488 /tests/diff/patch.c | |
parent | 5a49ff9fa0b89c9fd479e04e0f694fa5f07fd6f4 (diff) | |
download | libgit2-61dcfe1400a5ff1cf4dc805795cb72657c524906.tar.gz |
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.
Diffstat (limited to 'tests/diff/patch.c')
0 files changed, 0 insertions, 0 deletions