tweaks: pass an empty string for copying instead of a non-existent one
parent
f14be47878
commit
48b94d71c7
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue