Commit ea4b775a authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Eliding an unneeded variable.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5289 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 93e391eb
Showing with 2 additions and 3 deletions
+2 -3
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* src/nano.c (delete_opennode): Plug a small memory leak. * src/nano.c (delete_opennode): Plug a small memory leak.
* src/files.c (do_lockfile): Rename a variable; it does not contain * src/files.c (do_lockfile): Rename a variable; it does not contain
the size of the file but the size of the name. 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> 2015-07-06 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h, * src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h,
......
...@@ -1413,7 +1413,6 @@ void allow_pending_sigwinch(bool allow) ...@@ -1413,7 +1413,6 @@ void allow_pending_sigwinch(bool allow)
void do_toggle(int flag) void do_toggle(int flag)
{ {
bool enabled; bool enabled;
const char *desc;
TOGGLE(flag); TOGGLE(flag);
...@@ -1457,8 +1456,7 @@ void do_toggle(int flag) ...@@ -1457,8 +1456,7 @@ void do_toggle(int flag)
) )
enabled = !enabled; enabled = !enabled;
desc = (char *) _(flagtostr(flag)); statusbar("%s %s", _(flagtostr(flag)), enabled ? _("enabled") : _("disabled"));
statusbar("%s %s", desc, enabled ? _("enabled") : _("disabled"));
} }
#endif /* !NANO_TINY */ #endif /* !NANO_TINY */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment