From bfcdea286df81660b980a3bc91902b5970ff6347 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Wed, 4 Jun 2025 08:47:05 +0200 Subject: [PATCH] examples/async.c: fix sometimes-uninitialized warning Initialize retval with EXIT_SUCCESS. Otherwise, if there are no errors, this variable stays uninitialized. --- examples/async.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/async.c b/examples/async.c index 241bb7f..4fc9631 100644 --- a/examples/async.c +++ b/examples/async.c @@ -30,7 +30,7 @@ int main(int argc, char **argv) struct ftdi_context *ftdi; int do_read = 0; int do_write = 0; - int i, f, retval; + int i, f, retval = EXIT_SUCCESS; if ((ftdi = ftdi_new()) == 0) { -- 1.7.1