mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-01-21 12:02:40 -08:00
Fix assignment vs comparison typo
At the same time, ensure a newline is written after the error message.
This commit is contained in:
parent
b8e3ca6a2c
commit
fb162084f5
1 changed files with 3 additions and 3 deletions
6
one.cpp
6
one.cpp
|
|
@ -1278,9 +1278,9 @@ static int cli(int argc, char** argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
BOOL err = WriteFile(file, dump.str().c_str(), dump.str().size(), NULL, NULL);
|
||||
if (err = FALSE) {
|
||||
fprintf(stderr, "Error writing file");
|
||||
BOOL ok = WriteFile(file, dump.str().c_str(), dump.str().size(), NULL, NULL);
|
||||
if (ok == FALSE) {
|
||||
fprintf(stderr, "Error writing file\n");
|
||||
return 1;
|
||||
}
|
||||
CloseHandle(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue