Swift: fix -Wmissing-braces warning in extractor

By initializing va_list the standard way,
i.e. leaving it uninitialized until va_start().
This commit is contained in:
Nora Dimitrijević
2022-11-28 19:29:30 +01:00
parent c89c449a2c
commit 36e7235493

View File

@@ -27,7 +27,7 @@ static std::string originalHashFile(const fs::path& filename) {
}
static int codeql_open(const char* path, int oflag, ...) {
va_list ap = {0};
va_list ap;
mode_t mode = 0;
if ((oflag & O_CREAT) != 0) {
// mode only applies to O_CREAT