KPath: Remove memset after allocate.

We don't really need to clear these buffers, as they're basically
always used with user_strlcpy or precisely sized buffers, so there
should be no risk of "leaking" information to userland.
This commit is contained in:
Augustin Cavalier
2025-01-28 12:30:52 -05:00
parent 61d47c1e92
commit b2b3e71456
+1 -1
View File
@@ -440,7 +440,7 @@ KPath::_AllocateBuffer()
return B_NO_MEMORY;
}
memset(fBuffer, 0, fBufferSize);
fBuffer[0] = '\0';
fFailed = false;
return B_OK;
}