mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
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:
parent
61d47c1e92
commit
b2b3e71456
@ -440,7 +440,7 @@ KPath::_AllocateBuffer()
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
memset(fBuffer, 0, fBufferSize);
|
||||
fBuffer[0] = '\0';
|
||||
fFailed = false;
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user