Skip to content

Commit

Permalink
removed extra open call (#49)
Browse files Browse the repository at this point in the history
* removed extra open call
* Updated codeql skip reporting codes.
  • Loading branch information
brtnfld authored Dec 10, 2024
1 parent f53805b commit a60e4fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +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:
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 a60e4fb

Please sign in to comment.