Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb939c5

Browse files
author
Vicent Marti
committed
Merge pull request libgit2#2552 from KindDragon/master
Several CppCat warnings fixed
2 parents 6f3082d + 5cd81bb commit eb939c5

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/blame.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ static int blame_internal(git_blame *blame)
316316
ent->suspect = o;
317317

318318
blame->ent = ent;
319-
blame->path = blame->path;
320319

321320
git_blame__like_git(blame, blame->options.flags);
322321

src/pack.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,6 @@ int git_packfile_unpack(
648648
base_type = elem->type;
649649
}
650650

651-
if (error < 0)
652-
goto cleanup;
653-
654651
switch (base_type) {
655652
case GIT_OBJ_COMMIT:
656653
case GIT_OBJ_TREE:

src/stash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ int git_stash_drop(
634634
entry = git_reflog_entry_byindex(reflog, 0);
635635

636636
git_reference_free(stash);
637-
if ((error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, &entry->oid_cur, 1, NULL, NULL) < 0))
637+
error = git_reference_create(&stash, repo, GIT_REFS_STASH_FILE, &entry->oid_cur, 1, NULL, NULL);
638+
if (error < 0)
638639
goto cleanup;
639640

640641
/* We need to undo the writing that we just did */

src/transports/smart_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static int wait_while_ack(gitno_buffer *buf)
314314
break;
315315

316316
if (pkt->type == GIT_PKT_ACK &&
317-
(pkt->status != GIT_ACK_CONTINUE ||
317+
(pkt->status != GIT_ACK_CONTINUE &&
318318
pkt->status != GIT_ACK_COMMON)) {
319319
git__free(pkt);
320320
return 0;

0 commit comments

Comments
 (0)