Skip to content

Commit

Permalink
Fix static scan issues
Browse files Browse the repository at this point in the history
Tracked-On: OAM-117030
Signed-off-by: Zheng, XianjunX <[email protected]>
  • Loading branch information
xianju6x authored and sysopenci committed Apr 11, 2024
1 parent a55a5d1 commit 2acfe39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crashlog/crashutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ static int find_system_last_kmsg(char source[], int source_length) {
}
}
}
closedir(dir);
return file_exist;
}

Expand Down
2 changes: 1 addition & 1 deletion crashlog/fsutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static inline int dir_exists(const char *dirpath) {

dir = opendir(dirpath);
if (dir != NULL) {
closedir(dirpath);
closedir(dir);
return 1;
}
return 0;
Expand Down

0 comments on commit 2acfe39

Please sign in to comment.