mirror of
https://github.com/NixOS/nix
synced 2025-07-05 12:21:48 +02:00
Merge pull request #12765 from Mic92/clan-tidy-cleanups
Add various clang tidy fixes
This commit is contained in:
commit
4de73df8bf
5 changed files with 5 additions and 3 deletions
|
@ -33,7 +33,7 @@ std::optional<Mode> decodeMode(RawMode m) {
|
|||
static std::string getStringUntil(Source & source, char byte)
|
||||
{
|
||||
std::string s;
|
||||
char n[1];
|
||||
char n[1] = { 0 };
|
||||
source(std::string_view { n, 1 });
|
||||
while (*n != byte) {
|
||||
s += *n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue