mirror of
https://github.com/git/git.git
synced 2026-02-10 09:48:09 +00:00
fixup! mingw: Support git_terminal_prompt with more terminals
Use strbuf_reset() instead of strbuf_setlen(..., 0). Signed-off-by: Karsten Blees <blees@dcon.de>
This commit is contained in:
@@ -129,7 +129,7 @@ static char *xterm_prompt(const char *prompt, int echo)
|
||||
}
|
||||
close(child.in);
|
||||
|
||||
strbuf_setlen(&buffer, 0);
|
||||
strbuf_reset(&buffer);
|
||||
len = strbuf_read(&buffer, child.out, 1024);
|
||||
close(child.out);
|
||||
if (len < 0) {
|
||||
|
||||
Reference in New Issue
Block a user