NetBSD-Bugs archive

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

PR/60153 CVS commit: src/lib/libcurses



The following reply was made to PR lib/60153; it has been noted by GNATS.

From: "Harold Gutch" <hgutch%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/60153 CVS commit: src/lib/libcurses
Date: Wed, 1 Apr 2026 20:32:57 +0000

 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