Skip to content

Commit 9f3456b

Browse files
committed
Add wording about output_data in case of output_size=0
1 parent c380366 commit 9f3456b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/evmc/evmc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,15 @@ struct evmc_result
418418
* The memory containing the output data is owned by EVM and has to be
419419
* freed with evmc_result::release().
420420
*
421-
* This MAY be NULL.
421+
* This pointer MAY be NULL.
422+
* If evmc_result::output_size is 0 this pointer MUST NOT be dereferenced.
422423
*/
423424
const uint8_t* output_data;
424425

425426
/**
426427
* The size of the output data.
427428
*
428-
* If output_data is NULL this MUST be 0.
429+
* If evmc_result::output_data is NULL this MUST be 0.
429430
*/
430431
size_t output_size;
431432

0 commit comments

Comments
 (0)