lineedit: fix build failure
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Nov 2011 00:09:09 +0000 (01:09 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Nov 2011 00:09:09 +0000 (01:09 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c

index 0d232889b16231f3292df488cfb94d2b88bd8ef4..1390ed62d9b381f2ecfcd9a126724a1ca6d5acd2 100644 (file)
@@ -1520,8 +1520,10 @@ static void remember_in_history(char *str)
                for (i = 0; i < state->max_history-1; i++)
                        state->history[i] = state->history[i+1];
                /* i == state->max_history-1 */
-               if (ENABLE_FEATURE_EDITING_SAVE_ON_EXIT && state->cnt_history_in_file)
+# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
+               if (state->cnt_history_in_file)
                        state->cnt_history_in_file--;
+# endif
        }
        /* i <= state->max_history-1 */
        state->history[i++] = xstrdup(str);