Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libcurses



Module Name:    src
Committed By:   hgutch
Date:           Wed Apr  1 20:32:56 UTC 2026

Modified Files:
        src/lib/libcurses: add_wch.c addbytes.c attributes.c insdelln.c
            refresh.c touchwin.c

Log Message:
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.11 src/lib/libcurses/add_wch.c
cvs rdiff -u -r1.70 -r1.71 src/lib/libcurses/addbytes.c
cvs rdiff -u -r1.36 -r1.37 src/lib/libcurses/attributes.c
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/insdelln.c
cvs rdiff -u -r1.130 -r1.131 src/lib/libcurses/refresh.c
cvs rdiff -u -r1.35 -r1.36 src/lib/libcurses/touchwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index