nano.c:do_spell(), and search.c:do_replace() (David Benbennick).
- Change various const char *s to char *s because Irix curses
waddnstr() complains about const char's, I imagine this is a
- common System V curses issue.
-
+ common System V curses issue.
- files.c:
cwd_tab_completion()
- Memory leak fix (David Benbennick).
main()
- Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP
(David Benbennick).
+ - Silence annoying compiler messages about clobbering and
+ uninitialized variables by moving variable inits to the top
+ of main() and re-initializing them after the sigsetjmp().
- rcfile.c:
colortoint()
- Don't bomb after invalid color and print bad color name
{
int optchr;
int startline = 0; /* Line to try and start at */
- int modify_control_seq;
+ int modify_control_seq = 0;
int fill_flag_used = 0; /* Was the fill option used? */
const shortcut *s;
+ int keyhandled = 0; /* Have we handled the keystroke yet? */
+ int kbinput = -1; /* Input from keyboard */
+
#ifdef HAVE_GETOPT_LONG
int preserveopt = 0; /* Did the cmdline include --preserve? */
#endif
/* Return here after a sigwinch */
sigsetjmp(jmpbuf, 1);
+ /* SHUT UP GCC! */
+ startline = 0;
+ fill_flag_used = 0;
+ keyhandled = 0;
+
/* This variable should be initialized after the sigsetjmp(), so we
can't do Esc-Esc then quickly resize and muck things up. */
modify_control_seq = 0;
reset_cursor();
while (1) {
- int keyhandled = 0; /* Have we handled the keystroke yet? */
- int kbinput; /* Input from keyboard */
if (ISSET(CONSTUPDATE))
do_cursorpos(1);