diff options
author | Ben Straub <bs@github.com> | 2012-12-03 12:41:50 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-03 12:41:50 -0800 |
commit | de70aea6b1c09b67f233ef0bee83864ce90260b2 (patch) | |
tree | d9b50aa103dbd36c576edae52ec901ca2c7bda40 /src/signature.c | |
parent | 2da619abdebe78ce90be5e7d58e2257ec1777003 (diff) | |
download | libgit2-de70aea6b1c09b67f233ef0bee83864ce90260b2.tar.gz |
Remove GIT_SIGNATURE_VERSION and friends
Diffstat (limited to 'src/signature.c')
-rw-r--r-- | src/signature.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/signature.c b/src/signature.c index 008b13120..7d043e6cf 100644 --- a/src/signature.c +++ b/src/signature.c @@ -90,7 +90,6 @@ int git_signature_new(git_signature **sig_out, const char *name, const char *ema p = git__calloc(1, sizeof(git_signature)); GITERR_CHECK_ALLOC(p); - p->version = GIT_SIGNATURE_VERSION; if (process_trimming(name, &p->name, name + strlen(name), 1) < 0 || process_trimming(email, &p->email, email + strlen(email), 1) < 0) @@ -264,9 +263,8 @@ int git_signature__parse(git_signature *sig, const char **buffer_out, const char *buffer = *buffer_out; const char *line_end, *name_end, *email_end, *tz_start, *time_start; int error = 0; - git_signature initsig = GIT_SIGNATURE_INIT; - memmove(sig, &initsig, sizeof(git_signature)); + memset(sig, 0, sizeof(git_signature)); if ((line_end = memchr(buffer, ender, buffer_end - buffer)) == NULL) return signature_error("no newline given"); |