From 8bf58a79b1c27c1fcddd03e7699af79f78adf9d6 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 13 Jun 2023 22:11:21 +0200 Subject: [PATCH] detailed_processes(): initialize ret ... to avoid returning it uninitialized. Found by coverity: CID 320935: Uninitialized variables (UNINIT) --- binutils/aa_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binutils/aa_status.c b/binutils/aa_status.c index 6cd2acf43..601600a51 100644 --- a/binutils/aa_status.c +++ b/binutils/aa_status.c @@ -618,7 +618,7 @@ static int detailed_profiles(FILE *outf, filters_t *filters, bool json, */ static int detailed_processes(FILE *outf, filters_t *filters, bool json, struct process *processes, size_t nprocesses) { - int ret; + int ret = 0; size_t i; int need_finish = 0;