1
1

tweaks: pass an empty string for copying instead of a non-existent one

Этот коммит содержится в:
Benno Schulenberg 2019-10-14 19:17:28 +02:00
родитель f14be47878
Коммит 48b94d71c7

Просмотреть файл

@ -76,7 +76,7 @@ void search_init(bool replacing, bool keep_the_answer)
/* When starting a new search, clear the current answer. */ /* When starting a new search, clear the current answer. */
if (!keep_the_answer) if (!keep_the_answer)
answer = mallocstrcpy(answer, NULL); answer = mallocstrcpy(answer, "");
/* If something was searched for earlier, include it in the prompt. */ /* If something was searched for earlier, include it in the prompt. */
if (*last_search != '\0') { if (*last_search != '\0') {