tweaks: don't bother reallocating a string of which there is only one

And which normally is just some ten or twenty characters long, and
never gets wildly overallocated.
This commit is contained in:
Benno Schulenberg
2016-12-16 19:55:28 +01:00
parent 0562d27b9c
commit 1144d38316
3 changed files with 0 additions and 4 deletions

View File

@@ -1175,7 +1175,6 @@ void do_insertfile(void)
/* Convert newlines to nulls in the given filename. */
sunder(answer);
align(&answer);
#ifndef NANO_TINY
if (execute) {
@@ -2403,7 +2402,6 @@ int do_writeout(bool exiting)
/* Convert newlines to nulls, just before we save the file. */
sunder(answer);
align(&answer);
/* Here's where we allow the selected text to be written to
* a separate file. If we're using restricted mode, this