current answer to the empty string, as do_prompt() can handle a NULL.
* src/browser.c (do_browser): Delete a snippet of dead code.
* src/browser.c (do_browser): Delete an unneeded variable.
+ * src/search.c (do_gotolinecolumn): Delete another unneeded variable.
2016-03-17 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (do_research): Use the Search key bindings also during
bool interactive)
{
if (interactive) {
- char *ans = mallocstrcpy(NULL, answer);
functionptrtype func;
/* Ask for the line and column. */
#ifndef DISABLE_TABCOMP
TRUE,
#endif
- MGOTOLINE, use_answer ? ans : "",
+ MGOTOLINE, use_answer ? answer : NULL,
#ifndef DISABLE_HISTORIES
NULL,
#endif
/* TRANSLATORS: This is a prompt. */
edit_refresh, _("Enter line number, column number"));
- free(ans);
-
/* Cancel, or Enter with blank string. */
if (i < 0) {
statusbar(_("Cancelled"));