Skip to content

Commit

Permalink
cli: remove handling of null terminated string from git sideband writer
Browse files Browse the repository at this point in the history
I think this is copy-paste error from C implementation.
  • Loading branch information
yuja committed Feb 1, 2025
1 parent fc82e99 commit 994c6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/git_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl GitSidebandProgressMessageWriter {
}

// Add leftover message to "scratch" buffer to be printed in next call.
if index < progress_message.len() && progress_message[index] != 0 {
if index < progress_message.len() {
if self.scratch.is_empty() {
self.scratch.extend_from_slice(self.display_prefix);
}
Expand Down

0 comments on commit 994c6a4

Please sign in to comment.