Skip to content

Commit 36e7235

Browse files
committed
Swift: fix -Wmissing-braces warning in extractor
By initializing va_list the standard way, i.e. leaving it uninitialized until va_start().
1 parent c89c449 commit 36e7235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/extractor/remapping/SwiftOpenInterception.macOS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static std::string originalHashFile(const fs::path& filename) {
2727
}
2828

2929
static int codeql_open(const char* path, int oflag, ...) {
30-
va_list ap = {0};
30+
va_list ap;
3131
mode_t mode = 0;
3232
if ((oflag & O_CREAT) != 0) {
3333
// mode only applies to O_CREAT

0 commit comments

Comments
 (0)