Bug 19044

Summary: Some games compare initscr() to ERR.
Product: Base System Reporter: dwmalone <dwmalone>
Component: binAssignee: bill fumerola <billf>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dwmalone 2000-06-05 23:30:01 UTC
sail and battlestar compart initscr() to ERR to see if it has failed.
According to the man page for initscr:

	Routines that return pointers always return NULL on error.

initscr is supposed to return a WINDOW *, so I think it should be
compared to NULL to check for an error.

Fix: cvs diff: Diffing battlestar
How-To-Repeat: 
make battlestar or sail with warnings turned on.
Comment 1 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2000-06-11 12:33:59 UTC
Responsible Changed
From-To: freebsd-bugs->billf

Bill Fumerola did a lot of work on the games, let him add this to his 
fixes.
Comment 2 dwmalone freebsd_committer freebsd_triage 2001-03-05 12:06:48 UTC
State Changed
From-To: open->closed

Committed to -current.