diff --git a/.github/codeql-config.yml b/.github/codeql-config.yml index 3423a0e..8ea45a0 100644 --- a/.github/codeql-config.yml +++ b/.github/codeql-config.yml @@ -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 diff --git a/src/h5_async_vol.c b/src/h5_async_vol.c index 218b7a0..740754c 100644 --- a/src/h5_async_vol.c +++ b/src/h5_async_vol.c @@ -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);