Skip to content

Commit 167218e

Browse files
committed
fixup??? upload-pack: refactor reading of pack-objects out
This fixes an issue pointed out by clang. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2c31d71 commit 167218e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static void create_pack_file(const struct object_array *have_obj,
179179
const struct string_list *uri_protocols)
180180
{
181181
struct child_process pack_objects = CHILD_PROCESS_INIT;
182-
struct output_state output_state = {0};
182+
struct output_state output_state = {"\0"};
183183
char progress[128];
184184
char abort_msg[] = "aborting due to possible repository "
185185
"corruption on the remote side.";

0 commit comments

Comments
 (0)