diff options
Diffstat (limited to 'alpine/mailindx.c')
-rw-r--r-- | alpine/mailindx.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/alpine/mailindx.c b/alpine/mailindx.c index 63f9277..1dbb1b4 100644 --- a/alpine/mailindx.c +++ b/alpine/mailindx.c @@ -319,7 +319,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 +804,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 +835,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 +2431,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); |