diff --git a/linux/Makefile b/linux/Makefile index 2133dd7..5d1524a 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,5 +1,5 @@ CROSS ?= /opt/riscv64-uclibc/bin/riscv64-buildroot-linux-uclibc- -CFLAGS = -fPIC -Wl,-elf2flt=-r -Wall +CFLAGS = -fPIC -Wl,-elf2flt=-r -Wall -Os BINARIES = term esptun all: $(BINARIES) diff --git a/linux/esptun.c b/linux/esptun.c index 7285b39..c02afa7 100644 --- a/linux/esptun.c +++ b/linux/esptun.c @@ -337,7 +337,7 @@ static bool esp_read_responses(int fd, bool early_terminate) size_t ptr = 0; while (ptr < esp_end) { const uint8_t *resp = &esp_buffer[ptr]; - struct packet_info pkt_info; + struct packet_info pkt_info = {}; size_t len = esp_response_is_complete(resp, esp_end - ptr, &pkt_info); if (len) { logprintf(DEBUG, "<-: ");