summaryrefslogtreecommitdiff
path: root/src/uci.c
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-15 13:55:35 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-15 13:55:35 +0530
commit378cc549ab442c845ac9d62cc8cef6977073fe4d (patch)
tree83b4575d7ad80cdd4f694f596f5655e164e0478f /src/uci.c
parent7d36403836511ab0745791ce98498cf5112633c1 (diff)
md files
Diffstat (limited to 'src/uci.c')
-rw-r--r--src/uci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uci.c b/src/uci.c
index f842328..7b1ab8c 100644
--- a/src/uci.c
+++ b/src/uci.c
@@ -37,7 +37,8 @@ void *uci(ipc_state_t *ipc_state) {
// https://stackoverflow.com/a/41559081
fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK);
- uci_cmd_t cmd = uci_cmd_init();
+ uci_cmd_t cmd;
+ uci_cmd_init(&cmd);
size_t n;
char buf[1024];