first_file() and last_file(). Also unbind some other useless keys.
* src/browser.c (filesearch_init): Remove an unused variable, and
adjust the introductory comment for the recently tweaked logic.
+ * src/rcfile.c (parse_linter, parse_formatter): Use mallocstrcpy()
+ in a correct manner; don't let it free an unrelated string.
2015-04-11 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (do_replace_loop): Do not split off the marked region
if (!strcmp(ptr, "\"\""))
endsyntax->linter = NULL;
else
- endsyntax->linter = mallocstrcpy(syntaxes->linter, ptr);
+ endsyntax->linter = mallocstrcpy(NULL, ptr);
}
#ifndef DISABLE_SPELLER
if (!strcmp(ptr, "\"\""))
endsyntax->formatter = NULL;
else
- endsyntax->formatter = mallocstrcpy(syntaxes->formatter, ptr);
+ endsyntax->formatter = mallocstrcpy(NULL, ptr);
}
#endif /* !DISABLE_SPELLER */
#endif /* !DISABLE_COLOR */