detailed_processes(): initialize ret

... to avoid returning it uninitialized.

Found by coverity: CID 320935:  Uninitialized variables  (UNINIT)
This commit is contained in:
Christian Boltz 2023-06-13 22:11:21 +02:00
parent b6be7b6204
commit 8bf58a79b1
Failed to generate hash of commit

View file

@ -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;