summaryrefslogtreecommitdiff
path: root/src/tree-cache.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/tree-cache.c
parent763b838152244c0d7433cde0046e9f67369074e3 (diff)
downloadlibgit2-3f0358604e48432b53abf097aa3ab6a1e3639813.tar.gz
misc: Fix warnings from PVS Studio trial
Diffstat (limited to 'src/tree-cache.c')
-rw-r--r--src/tree-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree-cache.c b/src/tree-cache.c
index ebc2c6807..8d186d2fb 100644
--- a/src/tree-cache.c
+++ b/src/tree-cache.c
@@ -69,7 +69,7 @@ const git_tree_cache *git_tree_cache_get(const git_tree_cache *tree, const char
return NULL;
}
- if (end == NULL || end + 1 == '\0')
+ if (end == NULL || *end + 1 == '\0')
return tree;
ptr = end + 1;