summaryrefslogtreecommitdiff
path: root/src/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/cache.c
parent763b838152244c0d7433cde0046e9f67369074e3 (diff)
downloadlibgit2-3f0358604e48432b53abf097aa3ab6a1e3639813.tar.gz
misc: Fix warnings from PVS Studio trial
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 31da3c36e..f8d89403b 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -69,7 +69,7 @@ void *git_cache_try_store(git_cache *cache, void *_entry)
git_cached_obj *entry = _entry;
uint32_t hash;
- memcpy(&hash, &entry->oid, sizeof(hash));
+ memcpy(&hash, &entry->oid, sizeof(uint32_t));
/* increase the refcount on this object, because
* the cache now owns it */