diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-05-06 09:09:50 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-05-06 09:09:50 -0700 |
commit | cfba137707ba334b8f7917ca6261f842fa11a60e (patch) | |
tree | d0c4ed43cdde333c5bf1d7172145d98c464a5780 /src/commit.c | |
parent | cc3b82e376e0216c1af4ad46d24327d61e9efd99 (diff) | |
parent | d8e1d038b3e77fdcec01e662dc9bc6708ebcd24c (diff) | |
download | libgit2-cfba137707ba334b8f7917ca6261f842fa11a60e.tar.gz |
Merge pull request #175 from carlosmn/analyzer
Fix two warnings from Clang.
Fixes issue #173
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 0c37ec59b..54d7a47fe 100644 --- a/src/commit.c +++ b/src/commit.c @@ -286,7 +286,7 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len) if (buffer < buffer_end) { const char *line_end; - size_t message_len = buffer_end - buffer; + size_t message_len; /* Long message */ message_len = buffer_end - buffer; |