Skip to content
Commit 44951340 authored by Hanyuan Zhao's avatar Hanyuan Zhao Committed by Tom Rini
Browse files

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: default avatarHanyuan Zhao <hanyuan-z@qq.com>
parent efdf91c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment