aboutsummaryrefslogtreecommitdiff
path: root/git2d
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 11:21:49 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 11:21:49 +0800
commit578b83253e3fa7623cea33ed098f3313efa23fba (patch)
tree7532325d741960f9b3327ddeb9fc23fa635c5f82 /git2d
parentgit2d: Add some descriptive comments (diff)
downloadforge-578b83253e3fa7623cea33ed098f3313efa23fba.tar.gz
forge-578b83253e3fa7623cea33ed098f3313efa23fba.tar.zst
forge-578b83253e3fa7623cea33ed098f3313efa23fba.zip
git2d: More sensible variable location
Diffstat (limited to 'git2d')
-rw-r--r--git2d/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git2d/session.c b/git2d/session.c
index 9628a8c..aadab2a 100644
--- a/git2d/session.c
+++ b/git2d/session.c
@@ -13,7 +13,6 @@ session(void *_conn)
int err;
- char path[4096] = {0};
conn_io_t io = {.fd = conn };
struct bare_reader reader = {
.buffer = &io,
@@ -25,6 +24,7 @@ session(void *_conn)
};
/* Repo path */
+ char path[4096] = {0};
err = bare_get_data(&reader, (uint8_t *) path, sizeof(path) - 1);
if (err != BARE_ERROR_NONE) {
goto close;