diff options
| author | Hanyuan Zhao <[email protected]> | 2024-03-05 15:37:33 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-03-13 12:40:43 -0400 |
| commit | 44951340309d0dca73c05fc61406a1e839d1da93 (patch) | |
| tree | 16db46cea205f23cfbf2d0c125bf450f5c687ebb /scripts | |
| parent | efdf91c8eac143ff332c64ce58186f68ba396ae6 (diff) | |
cli: panic when failed to allocate memory for the history buffer
This commit simply modifies the history initialize function,
replacing the return value by panic with reasons. The calling
chains of hist_init don't have steps explicitly throwing or
dealing with the ENOMEM error, and once the init fails, the
whole system is died. Using panic here to provide error
information instead.
Signed-off-by: Hanyuan Zhao <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
