--- - branch: MAIN date: Tue Jun 1 00:59:02 UTC 2021 files: - new: '1.60' old: '1.59' path: src/lib/libcurses/newwin.c pathrev: src/lib/libcurses/newwin.c@1.60 type: modified id: 20210601T005902Z.bdadad985b75e7173dc71ddf709521047b1ad386 log: | Fix initial line hash calculation for subwindows lp->hash is not initialized at this point. Since the hash is calculated in chunks using __hash_more(), it needs to be initialized to 0 first (just as in doupdate()). Detected with valgrind while running python's test suite when debugging an unrelated issue. ok uwe@ module: src subject: 'CVS commit: src/lib/libcurses' unixtime: '1622509142' user: mcf