Skip to content

Commit df45a2f

Browse files
Update comment for KernelInfo_GetNodeName
1 parent 3968ec3 commit df45a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/onnxruntime/core/session/onnxruntime_c_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4428,7 +4428,7 @@ struct OrtApi {
44284428
* If `out` is nullptr, the value of `size` is set to the size of the name
44294429
* string (including null-terminator), and a success status is returned.
44304430
*
4431-
* If the `size` parameter is greater than or equal to the name string's size,
4431+
* If the `size` parameter is greater than or equal to the name string's size and `out` is not nullptr,
44324432
* the value of `size` is set to the true size of the string (including null-terminator),
44334433
* the provided memory is filled with the string's contents, and a success status is returned.
44344434
*

0 commit comments

Comments
 (0)