[3277] in Athena Bugs

home help back first fref pref prev next nref lref last post

Saber msg: v2.1 (4/24/89 gevalt vax Unix 4042 0)

daemon@ATHENA.MIT.EDU (jik@ATHENA.MIT.EDU)
Fri Sep 22 01:46:39 1989

From: <jik@ATHENA.MIT.EDU>
Date: Fri, 22 Sep 89 01:46:19 -0400
To: bugs@ATHENA.MIT.EDU

Saber complained about the following macro:

#define utStrlen(s) ((s) ? strlen(s) : 0)

It gave the following error:

The conditional expression for '?' is always true.

Why?  What's to stop (s) from being null?

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-4261			      Home: 617-782-0710

home help back first fref pref prev next nref lref last post