tweaks: pass an empty string for copying instead of a non-existent one
Этот коммит содержится в:
родитель
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') {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user