CVS commit: [netbsd-11] src/lib/libcurses
"Martin Husemann" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: martin Date: Fri Apr 3 13:32:58 UTC 2026 Modified Files: src/lib/libcurses [netbsd-11]: add_wch.c addbytes.c attributes.c insdelln.c refresh.c touchwin.c Log Message: Pull up following revision(s) (requested by hgutch in ticket #248): lib/libcurses/addbytes.c: revision 1.71 lib/libcurses/attributes.c: revision 1.37 lib/libcurses/insdelln.c: revision 1.25 lib/libcurses/add_wch.c: revision 1.11 lib/libcurses/touchwin.c: revision 1.36 lib/libcurses/refresh.c: revision 1.131 libcurses: fix wrong NULL guard Move the NULL guard in _cursesi_waddbytes() out of #ifdef DEBUG . Delay initialization of all variables that require dereferencing pointers that might be NULL until after the NULL guards. This is what KNF calls for anyway. Fixes PR lib/60153 . To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.2.1 src/lib/libcurses/add_wch.c cvs rdiff -u -r1.70 -r1.70.2.1 src/lib/libcurses/addbytes.c cvs rdiff -u -r1.36 -r1.36.2.1 src/lib/libcurses/attributes.c cvs rdiff -u -r1.24 -r1.24.2.1 src/lib/libcurses/insdelln.c cvs rdiff -u -r1.129.2.1 -r1.129.2.2 src/lib/libcurses/refresh.c cvs rdiff -u -r1.35 -r1.35.2.1 src/lib/libcurses/touchwin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.