From 725fcee0048c6554d8c4c5393f52c350bb662e48 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Tue, 5 Aug 2025 20:22:41 +0200 Subject: [PATCH] Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: simatd578.c:143:9: warning: ā€˜n’ may be used uninitialized [-Wmaybe-uninitialized] --- simulators/simatd578.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulators/simatd578.c b/simulators/simatd578.c index 06de3e511..661338c6c 100644 --- a/simulators/simatd578.c +++ b/simulators/simatd578.c @@ -55,7 +55,6 @@ _getmyline(int fd, unsigned char *buf) int main(int argc, char *argv[]) { unsigned char buf[BUFSIZE], buf2[256]; - int n; again: int fd = openPort(argv[1]); @@ -63,6 +62,7 @@ again: while (1) { int bytes = _getmyline(fd, buf); + int n = 0; if (bytes == 0) {