Skip to content

Commit f18681b

Browse files
committed
fix a compiler warning
doing it like this means that if the switch ever were inexhaustive, it'll just throw an error in fopen.
1 parent 532e853 commit f18681b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/asar/platform/linux/file-helpers-linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FileHandleType open_file(const char* path, FileOpenMode mode, FileOpenError* err
4343
}
4444

4545
FILE* out_handle = NULL;
46-
const char* open_mode;
46+
const char* open_mode = "";
4747

4848
switch (mode)
4949
{

0 commit comments

Comments
 (0)