mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[data] Moved comment to more appropriate place.
This commit is contained in:
parent
267948b2e8
commit
b7b0b28ea8
@ -134,8 +134,6 @@ data_protocol_handler(struct connection *conn)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Allocate the data string because URI decoding will possibly modify
|
||||
* it. */
|
||||
datalen = uri->datalen - (data_start - uri->data);
|
||||
if (base64) {
|
||||
unsigned char *decoded = base64_decode_bin(data_start, datalen, &decodedlen);
|
||||
@ -147,6 +145,8 @@ data_protocol_handler(struct connection *conn)
|
||||
|
||||
mem_free_set(&data, decoded);
|
||||
} else {
|
||||
/* Allocate the data string because URI decoding will possibly modify
|
||||
* it. */
|
||||
data = memacpy(data_start, datalen);
|
||||
|
||||
if (!data) {
|
||||
|
Loading…
Reference in New Issue
Block a user