diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-07-17 10:53:19 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-25 07:53:27 +0200 |
| commit | 7c458e3aee7b39bfec368456d494972fe9ae244b (patch) | |
| tree | 03c3115e072c1c08e54a16abb4808b55b4e32b7e /src/reflog.c | |
| parent | 1cb157184b6547b613a008455ba386425bb38a23 (diff) | |
| download | libgit2-7c458e3aee7b39bfec368456d494972fe9ae244b.tar.gz | |
reflog: add GIT_OID_HEX_ZERO constant
Diffstat (limited to 'src/reflog.c')
| -rw-r--r-- | src/reflog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflog.c b/src/reflog.c index 004ba936d..0e0758381 100644 --- a/src/reflog.c +++ b/src/reflog.c @@ -258,7 +258,7 @@ int git_reflog_write(git_reference *ref, const git_oid *oid_old, if (oid_old) git_oid_tostr(old, sizeof(old), oid_old); else - p_snprintf(old, sizeof(old), "%0*d", GIT_OID_HEXSZ, 0); + memmove(old, GIT_OID_HEX_ZERO, sizeof(old)); error = reflog_write(log_path.ptr, old, new, committer, msg); |
