diff options
| author | bunnei <bunneidev@gmail.com> | 2015-09-21 21:29:55 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-09-21 21:29:55 -0400 |
| commit | 4a07e855cdcef8a78a0a08a35dd92720f1fd6eb0 (patch) | |
| tree | 4590343a003cedb3116fbc2ecf1da83354e90c56 /src/common/file_util.cpp | |
| parent | 8a434a954e9d6ad2dda79784d8ec5e87e5ee43ff (diff) | |
| parent | 2c2f1250d2015430430189c1b66a8cd9c9110409 (diff) | |
Merge pull request #1160 from lioncash/clang
Silence some clang warnings
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 836b58d527..dcb9baa083 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -861,8 +861,8 @@ void SplitFilename83(const std::string& filename, std::array<char, 9>& short_nam const std::string forbidden_characters = ".\"/\\[]:;=, "; // On a FAT32 partition, 8.3 names are stored as a 11 bytes array, filled with spaces. - short_name = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '\0'}; - extension = {' ', ' ', ' ', '\0'}; + short_name = {{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '\0'}}; + extension = {{' ', ' ', ' ', '\0'}}; std::string::size_type point = filename.rfind('.'); if (point == filename.size() - 1) |
