transfer: Code style policing
Prefer ! rather than NULL in if statements, added comments and updated function spacing, argument spacing and line spacing to be more readble.
This commit is contained in:
@@ -910,13 +910,16 @@ static CURLcode readwrite_upload(struct SessionHandle *data,
|
|||||||
(data->set.prefer_ascii) ||
|
(data->set.prefer_ascii) ||
|
||||||
#endif
|
#endif
|
||||||
(data->set.crlf))) {
|
(data->set.crlf))) {
|
||||||
if(data->state.scratch == NULL) {
|
/* Do we need to allocate a scratch buffer? */
|
||||||
|
if(!data->state.scratch) {
|
||||||
data->state.scratch = malloc(2 * BUFSIZE);
|
data->state.scratch = malloc(2 * BUFSIZE);
|
||||||
if(data->state.scratch == NULL) {
|
if(!data->state.scratch) {
|
||||||
failf(data, "Failed to alloc scratch buffer!");
|
failf(data, "Failed to alloc scratch buffer!");
|
||||||
|
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ASCII/EBCDIC Note: This is presumably a text (not binary)
|
* ASCII/EBCDIC Note: This is presumably a text (not binary)
|
||||||
* transfer so the data should already be in ASCII.
|
* transfer so the data should already be in ASCII.
|
||||||
|
|||||||
Reference in New Issue
Block a user