aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 15:39:20 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 15:39:20 +0800
commit3066b1e323d48ef4abe310d3868fd16c4b3de56f (patch)
tree2431139b7264692b31291f346b15a82780350edc
parentgit2d: Clean up commit author date/etc handling, and add email (diff)
downloadforge-3066b1e323d48ef4abe310d3868fd16c4b3de56f.tar.gz
forge-3066b1e323d48ef4abe310d3868fd16c4b3de56f.tar.zst
forge-3066b1e323d48ef4abe310d3868fd16c4b3de56f.zip
git2d: Initialize the path to zeros
Otherwise it's a Conditional jump or move depends on uninitialised value(s)
-rw-r--r--git2d/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git2d/main.c b/git2d/main.c
index 5301a67..1895864 100644
--- a/git2d/main.c
+++ b/git2d/main.c
@@ -67,7 +67,7 @@ session(void *_conn)
int err;
git_repository *repo = NULL;
- char path[4096];
+ char path[4096] = {0};
conn_io_t io = {.fd = conn };
struct bare_reader reader = {
.buffer = &io,