Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-07-26 21:28:57 +0400
committerRussell Belfer <rb@github.com>2013-07-26 21:28:57 +0400
commit8dd8aa480ba46863e9c7df40bb9695e88a0286ee (patch)
tree371b256bb4f416a4114b58685fa88851a388a7ff /src/blob.c
parenta16e41729d5dec4acd30302c4a217622de00d290 (diff)
Fix some warnings
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index 0f1c97003..5bb51f7cf 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -195,7 +195,7 @@ int git_blob__create_from_paths(
size = st.st_size;
mode = hint_mode ? hint_mode : st.st_mode;
- if (S_ISLNK(hint_mode)) {
+ if (S_ISLNK(mode)) {
error = write_symlink(oid, odb, content_path, (size_t)size);
} else {
git_vector write_filters = GIT_VECTOR_INIT;