summaryrefslogtreecommitdiff
path: root/xc/lib/Xt/Intrinsic.c
diff options
context:
space:
mode:
authorswick <empty>1990-08-03 11:16:06 +0000
committerswick <empty>1990-08-03 11:16:06 +0000
commita2b26917868db9967715b0db1c68a04a8b93748e (patch)
tree74fbba5609fe7d5d2e04a929c63ab41e3f922ec2 /xc/lib/Xt/Intrinsic.c
parentf4b1913d76deadcf115ef5ce1979154782b7c623 (diff)
Don't de-ref nil and loop in _XtWindowedAncestor()
Diffstat (limited to 'xc/lib/Xt/Intrinsic.c')
-rw-r--r--xc/lib/Xt/Intrinsic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xc/lib/Xt/Intrinsic.c b/xc/lib/Xt/Intrinsic.c
index b9439b692..3cbb029ef 100644
--- a/xc/lib/Xt/Intrinsic.c
+++ b/xc/lib/Xt/Intrinsic.c
@@ -1,4 +1,4 @@
-/* $XConsortium: Intrinsic.c,v 1.149 90/04/13 20:17:34 swick Exp $ */
+/* $XConsortium: Intrinsic.c,v 1.150 90/07/12 17:50:41 swick Exp $ */
/***********************************************************
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
@@ -572,16 +572,16 @@ Boolean XtIsSensitive(object)
* Internal routine; must be called only after XtIsWidget returns false
*/
Widget _XtWindowedAncestor(object)
- Widget object;
+ register Widget object;
{
+ Widget obj = object;
for (object = XtParent(object); object && !XtIsWidget(object);)
object = XtParent(object);
if (object == NULL) {
- String params = XtName(object);
+ String params = XtName(obj);
Cardinal num_params = 1;
- XtAppErrorMsg(XtWidgetToApplicationContext(object),
- "noWidgetAncestor", "windowedAncestor", XtCXtToolkitError,
+ XtErrorMsg("noWidgetAncestor", "windowedAncestor", XtCXtToolkitError,
"Object \"%s\" does not have windowed ancestor",
&params, &num_params);
}