tweaks: rename a variable, to be a bit more fitting

master
Benno Schulenberg 2018-09-23 14:51:40 +02:00
parent 33b576c289
commit be69a7c299
1 changed files with 6 additions and 6 deletions

View File

@ -2947,7 +2947,7 @@ void do_spell(void)
char *temp; char *temp;
unsigned stash[sizeof(flags) / sizeof(flags[0])]; unsigned stash[sizeof(flags) / sizeof(flags[0])];
/* A storage place for the current flag settings. */ /* A storage place for the current flag settings. */
const char *spell_msg; const char *result_msg;
if (ISSET(RESTRICTED)) { if (ISSET(RESTRICTED)) {
show_restricted_warning(); show_restricted_warning();
@ -2982,8 +2982,8 @@ void do_spell(void)
blank_bottombars(); blank_bottombars();
spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) : result_msg = (alt_speller ? do_alt_speller(temp) : do_int_speller(temp));
do_int_speller(temp);
unlink(temp); unlink(temp);
free(temp); free(temp);
@ -2994,12 +2994,12 @@ void do_spell(void)
* sure that they're cleared off. */ * sure that they're cleared off. */
total_refresh(); total_refresh();
if (spell_msg != NULL) { if (result_msg != NULL) {
if (errno == 0) if (errno == 0)
/* Don't display an error message of "Success". */ /* Don't display an error message of "Success". */
statusline(ALERT, _("Spell checking failed: %s"), spell_msg); statusline(ALERT, _("Spell checking failed: %s"), result_msg);
else else
statusline(ALERT, _("Spell checking failed: %s: %s"), spell_msg, statusline(ALERT, _("Spell checking failed: %s: %s"), result_msg,
strerror(errno)); strerror(errno));
} else } else
statusbar(_("Finished checking spelling")); statusbar(_("Finished checking spelling"));