Skip to content

Commit

Permalink
Fixing Coverity issue for log_capture
Browse files Browse the repository at this point in the history
Tests Done: Build and boot

Tracked-On: OAM-125083
Signed-off-by: Tanuj Tekriwal <[email protected]>
  • Loading branch information
tanujtekriwal committed Sep 19, 2024
1 parent ef72536 commit 5975bec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crashlog/crashutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ static int find_system_last_kmsg(char source[], int source_length) {

if (source == NULL) {
LOGE("source is NULL.\n");
closedir(dir);
return file_exist;
}
if (dir == NULL) {
Expand Down

0 comments on commit 5975bec

Please sign in to comment.