From 7322819a1d823952938fd17d4abc0b044b637721 Mon Sep 17 00:00:00 2001 From: QC Date: Fri, 6 Mar 2015 20:38:11 +0100 Subject: [PATCH] No need to check nullptr on nonnull argument. --- source/rofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rofi.c b/source/rofi.c index 3981ff62..8db4555f 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -961,7 +961,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom ( config.padding ), entrybox_width, 0, NORMAL, - ( input != NULL ) ? *input : "" ); + *input ); // Move indicator to end. textbox_move ( state.case_indicator, config.padding + textbox_get_width ( state.prompt_tb ) + entrybox_width,