mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 07:22:43 +01:00
Merge pull request #12857 from NixOS/mergify/bp/2.28-maintenance/pr-12765
Add various clang tidy fixes (backport #12765)
This commit is contained in:
commit
b38fee24d7
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