ash,hush: drop pointer check before calls to show_history
No binary (build failed)
—
(log yok)
| @@ -13824,8 +13824,7 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |
| static int FAST_FUNC | |
| historycmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |
| { | |
| - | if (line_input_state) |
| - | show_history(line_input_state); |
| + | show_history(line_input_state); |
| return EXIT_SUCCESS; | |
| } | |
| #endif | |
| @@ -10461,8 +10461,7 @@ static int FAST_FUNC builtin_help(char **argv UNUSED_PARAM) | |
| #if MAX_HISTORY && ENABLE_FEATURE_EDITING | |
| static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM) | |
| { | |
| - | if (G.line_input_state) |
| - | show_history(G.line_input_state); |
| + | show_history(G.line_input_state); |
| return EXIT_SUCCESS; | |
| } | |
| #endif | |