1
0
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:
Ben Harris
2005-06-19 14:17:24 +00:00
parent b400397f69
commit 93712a3ee1
2 changed files with 0 additions and 10 deletions

2
pscp.c
View File

@ -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;