We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8e7a24 commit 9ed5151Copy full SHA for 9ed5151
sdk/lib/ucrt/exec/cenvarg.cpp
@@ -53,14 +53,14 @@ static errno_t __cdecl construct_command_line(
53
Character* result_it = command_line.get();
54
55
// If there are no arguments, just return the empty string:
56
- if (*source_it == '\0')
+ if (*source_it == nullptr)
57
{
58
*command_line_result = command_line.detach();
59
return 0;
60
}
61
62
// Copy the arguments, separated by spaces:
63
- while (*source_it != '\0')
+ while (*source_it != nullptr)
64
65
_ERRCHECK(traits::tcscpy_s(result_it, command_line_count - (result_it - command_line.get()), *source_it));
66
result_it += traits::tcslen(*source_it);
0 commit comments