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

master
Benno Schulenberg 2019-10-14 19:17:28 +02:00
parent f14be47878
commit 48b94d71c7
1 changed files with 1 additions and 1 deletions

View File

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