diff options
Diffstat (limited to 'alpine/mailindx.c')
-rw-r--r-- | alpine/mailindx.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/alpine/mailindx.c b/alpine/mailindx.c index 63f92772..70926d53 100644 --- a/alpine/mailindx.c +++ b/alpine/mailindx.c @@ -1,10 +1,6 @@ -#if !defined(lint) && !defined(DOS) -static char rcsid[] = "$Id: mailindx.c 1142 2008-08-13 17:22:21Z hubert@u.washington.edu $"; -#endif - /* * ======================================================================== - * Copyright 2013-2021 Eduardo Chappa + * Copyright 2013-2022 Eduardo Chappa * Copyright 2006-2008 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -319,7 +315,7 @@ index_lister(struct pine *state, CONTEXT_S *cntxt, char *folder, MAILSTREAM *str { UCS ch; int cmd, which_keys, force, - cur_row, cur_col, km_popped, paint_status; + cur_row, cur_col = 0, km_popped, paint_status = 0; static int old_day = -1; long i, j, k, old_max_msgno; long lflagged, old_lflagged = 0L; @@ -804,6 +800,8 @@ view_a_thread: thrd = fetch_thread(stream, i); if(thrd && thrd->top) topthrd = fetch_thread(stream, thrd->top); + else + topthrd = NULL; if(topthrd){ set_thread_lflags(stream, topthrd, msgmap, MN_CHID, 1); set_thread_lflags(stream, topthrd, msgmap, MN_CHID2, 0); @@ -833,7 +831,7 @@ view_a_thread: case MC_MOUSE: { MOUSEPRESS mp; - int new_cur; + int new_cur = 0; mouse_get_last (NULL, &mp); mp.row -= 2; @@ -2429,7 +2427,7 @@ int index_scroll_to_pos (long int pos) { static short bad_timing = 0; - long i, j, k; + long i, j, k = 0; if(bad_timing) return (FALSE); |