diff options
author | Arkady Shapkin <arkadiy_s@inbox.ru> | 2014-09-03 01:01:25 +0400 |
---|---|---|
committer | Arkady Shapkin <arkadiy_s@inbox.ru> | 2014-09-03 01:01:25 +0400 |
commit | 5cd81bb3d88218d42dd431f2c5011dfa84c287c7 (patch) | |
tree | 43bfda14197265192576842893ecc49b17a0383d /src/stash.c | |
parent | d4cb23e4e50688a9079ab0e3ec12cf2cc1256f04 (diff) | |
download | libgit2-5cd81bb3d88218d42dd431f2c5011dfa84c287c7.tar.gz |
Several CppCat warnings fixed
Diffstat (limited to 'src/stash.c')
-rw-r--r-- | src/stash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stash.c b/src/stash.c index 86e0a627c..22f756e35 100644 --- a/src/stash.c +++ b/src/stash.c @@ -634,7 +634,8 @@ int git_stash_drop( entry = git_reflog_entry_byindex(reflog, 0); git_reference_free(stash); - if ((error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, &entry->oid_cur, 1, NULL, NULL) < 0)) + error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, &entry->oid_cur, 1, NULL, NULL); + if (error < 0) goto cleanup; /* We need to undo the writing that we just did */ |