summaryrefslogtreecommitdiff
path: root/src/notes.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-06-07 22:43:03 +0200
committerVicent Martí <tanoku@gmail.com>2012-06-07 22:43:48 +0200
commit3f0358604e48432b53abf097aa3ab6a1e3639813 (patch)
treec132a79507bb39fc37abb49e361f2f720bc69737 /src/notes.c
parent763b838152244c0d7433cde0046e9f67369074e3 (diff)
downloadlibgit2-3f0358604e48432b53abf097aa3ab6a1e3639813.tar.gz
misc: Fix warnings from PVS Studio trial
Diffstat (limited to 'src/notes.c')
-rw-r--r--src/notes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notes.c b/src/notes.c
index 84ad94087..e87ea65fb 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -125,7 +125,7 @@ static int note_write(git_oid *out, git_repository *repo,
return error;
}
- error = git_treebuilder_insert(&entry, tb, target + fanout, &oid, 0100644);
+ error = git_treebuilder_insert(&entry, tb, target + fanout, &oid, 0100644); //-V536
if (error < 0) {
/* libgit2 doesn't support object removal (gc) yet */
/* we leave an orphaned blob object behind - TODO */
@@ -154,7 +154,7 @@ static int note_write(git_oid *out, git_repository *repo,
if (error < 0)
return error;
- error = git_treebuilder_insert(NULL, tb, subtree, &oid, 0040000);
+ error = git_treebuilder_insert(NULL, tb, subtree, &oid, 0040000); //-V536
if (error < 0) {
git_treebuilder_free(tb);
return error;