diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 11:21:49 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 11:21:49 +0800 |
commit | 578b83253e3fa7623cea33ed098f3313efa23fba (patch) | |
tree | 7532325d741960f9b3327ddeb9fc23fa635c5f82 /git2d/session.c | |
parent | git2d: Add some descriptive comments (diff) | |
download | forge-578b83253e3fa7623cea33ed098f3313efa23fba.tar.gz forge-578b83253e3fa7623cea33ed098f3313efa23fba.tar.zst forge-578b83253e3fa7623cea33ed098f3313efa23fba.zip |
git2d: More sensible variable location
Diffstat (limited to '')
-rw-r--r-- | git2d/session.c | 2 |
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; |