mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
detailed_processes(): initialize ret
... to avoid returning it uninitialized. Found by coverity: CID 320935: Uninitialized variables (UNINIT)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user