diff options
author | Daniel J. Hofmann <daniel@trvx.org> | 2014-03-07 18:20:42 +0100 |
---|---|---|
committer | Daniel J. Hofmann <daniel@trvx.org> | 2014-03-07 18:28:16 +0100 |
commit | 7dc0b6f40be172915783e26cd77e86cbdb7ddaba (patch) | |
tree | ef46bac818615f9d911eb72c1bced92f00194ffe /autoload.cpp | |
parent | 79d14521db4c71250109785b8317aeceecd539c9 (diff) |
Fixed various Undefined Behavior occurrences.
Conditionally uninitialized:
- builtin_commandline.cpp:577
- expand.cpp:869
- parse_util.cpp:1036
Initialization of POD structs:
- event.cpp:61
- autoload.cpp:22
References used with va_start:
- common.cpp:608:18
Found with clang-3.4's awesome -Wconditional-uninitialized,
-Wmissing-field-initializers and -Wvarargs.
Diffstat (limited to 'autoload.cpp')
-rw-r--r-- | autoload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload.cpp b/autoload.cpp index e2e532de..5a72a5cd 100644 --- a/autoload.cpp +++ b/autoload.cpp @@ -19,7 +19,7 @@ static const int kAutoloadStalenessInterval = 15; file_access_attempt_t access_file(const wcstring &path, int mode) { //printf("Touch %ls\n", path.c_str()); - file_access_attempt_t result = {0}; + file_access_attempt_t result = {}; struct stat statbuf; if (wstat(path, &statbuf)) { |