https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9ed5151de9e6f50318881…
commit 9ed5151de9e6f50318881ae86e5c486929044b80
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Oct 13 20:23:24 2024 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Jan 16 14:18:53 2025 +0200
[UCRT] Fix benign typo ('\0' instead of nullptr)
---
sdk/lib/ucrt/exec/cenvarg.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdk/lib/ucrt/exec/cenvarg.cpp b/sdk/lib/ucrt/exec/cenvarg.cpp
index 7a664e3e5fa..942f25bab32 100644
--- a/sdk/lib/ucrt/exec/cenvarg.cpp
+++ b/sdk/lib/ucrt/exec/cenvarg.cpp
@@ -53,14 +53,14 @@ static errno_t __cdecl construct_command_line(
Character* result_it = command_line.get();
// If there are no arguments, just return the empty string:
- if (*source_it == '\0')
+ if (*source_it == nullptr)
{
*command_line_result = command_line.detach();
return 0;
}
// Copy the arguments, separated by spaces:
- while (*source_it != '\0')
+ while (*source_it != nullptr)
{
_ERRCHECK(traits::tcscpy_s(result_it, command_line_count - (result_it -
command_line.get()), *source_it));
result_it += traits::tcslen(*source_it);