Skip to content

Commit 9ed5151

Browse files
committed
[UCRT] Fix benign typo ('\0' instead of nullptr)
1 parent f8e7a24 commit 9ed5151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/lib/ucrt/exec/cenvarg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ static errno_t __cdecl construct_command_line(
5353
Character* result_it = command_line.get();
5454

5555
// If there are no arguments, just return the empty string:
56-
if (*source_it == '\0')
56+
if (*source_it == nullptr)
5757
{
5858
*command_line_result = command_line.detach();
5959
return 0;
6060
}
6161

6262
// Copy the arguments, separated by spaces:
63-
while (*source_it != '\0')
63+
while (*source_it != nullptr)
6464
{
6565
_ERRCHECK(traits::tcscpy_s(result_it, command_line_count - (result_it - command_line.get()), *source_it));
6666
result_it += traits::tcslen(*source_it);

0 commit comments

Comments
 (0)