mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user