Skip to content

Commit

Permalink
removed extra open call
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Dec 10, 2024
1 parent f53805b commit 237fe68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ query-filters:
- exclude:
# See: https://codeql.github.com/codeql-query-help/cpp/cpp-irregular-enum-init/
id: cpp/irregular-enum-init

-exclude:
# See: https://codeql.github.com/codeql-query-help/cpp/cpp-guarded-free/
id: cpp/guarded-free
# Directories to scan for vulnerabilities
paths:
- src # Main source directory
Expand Down
1 change: 0 additions & 1 deletion src/h5_async_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,6 @@ async_instance_init(int backing_thread_count)
if (ASYNC_DBG_MSG_RANK == -1) {
char fname[128];
sprintf(fname, "async.log.%d", aid->mpi_rank);
fout_g = fopen(fname, "w");
int fd = open(fname, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR | S_IRGRP);
if (fd < 0) {
fprintf(fout_g, " [ASYNC VOL ERROR] with opening %s\n", fname);
Expand Down

0 comments on commit 237fe68

Please sign in to comment.