mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 04:52:47 -05:00
A major purpose of PuTTY's memory-allocation functions is to succeed or die
trying, so there's no need to check their return values for NULL. Spotted by Ben Rudiak-Gould. [originally from svn r5978]
This commit is contained in:
2
pscp.c
2
pscp.c
@ -213,8 +213,6 @@ int from_backend(void *frontend, int is_stderr, const char *data, int datalen)
|
||||
if (pendsize < pendlen + len) {
|
||||
pendsize = pendlen + len + 4096;
|
||||
pending = sresize(pending, pendsize, unsigned char);
|
||||
if (!pending)
|
||||
fatalbox("Out of memory");
|
||||
}
|
||||
memcpy(pending + pendlen, p, len);
|
||||
pendlen += len;
|
||||
|
Reference in New Issue
Block a user