* src/nano.c (delete_opennode): Plug a small memory leak.
* src/files.c (do_lockfile): Rename a variable; it does not contain
the size of the file but the size of the name.
+ * src/nano.c (do_toggle): Elide an unneeded variable.
2015-07-06 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h,
void do_toggle(int flag)
{
bool enabled;
- const char *desc;
TOGGLE(flag);
)
enabled = !enabled;
- desc = (char *) _(flagtostr(flag));
- statusbar("%s %s", desc, enabled ? _("enabled") : _("disabled"));
+ statusbar("%s %s", _(flagtostr(flag)), enabled ? _("enabled") : _("disabled"));
}
#endif /* !NANO_TINY */