mirror of
https://github.com/transmission/transmission
synced 2024-12-31 20:16:57 +00:00
Don't call front()
on an empty string (#3520)
This commit is contained in:
parent
9539484cdc
commit
4a18c503c7
1 changed files with 1 additions and 1 deletions
|
@ -1024,7 +1024,7 @@ TEST_F(FileTest, pathNativeSeparators)
|
|||
for (auto const& test : tests)
|
||||
{
|
||||
auto buf = std::string(test.input);
|
||||
char* const output = tr_sys_path_native_separators(&buf.front());
|
||||
char* const output = tr_sys_path_native_separators(buf.data());
|
||||
EXPECT_EQ(test.expected_output, output);
|
||||
EXPECT_EQ(buf.data(), output);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue