summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2010-02-19 13:41:49 (GMT)
committerdkf <dkf@noemail.net>2010-02-19 13:41:49 (GMT)
commit1fd0d49657b9af0047787c47691bfb3773a8ef97 (patch)
tree13c46f5ecaeed1a5d59b4a2abec2f931d84c805b /xlib
parentdcbe632627bf31de9d6eccf23e2d0623160e9f40 (diff)
downloadtk-1fd0d49657b9af0047787c47691bfb3773a8ef97.zip
tk-1fd0d49657b9af0047787c47691bfb3773a8ef97.tar.gz
tk-1fd0d49657b9af0047787c47691bfb3773a8ef97.tar.bz2
[Tcl Bug 2954638]: Correct behaviour of manual page installer. Also added
armouring to check that assumptions about the initial state are actually valid (e.g., look for existing input file). FossilOrigin-Name: d9d97ec4d9237ca6cb9ced72751139a4cf81b3c4
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlib/xutil.c b/xlib/xutil.c
index 103d995..d5e26eb 100644
--- a/xlib/xutil.c
+++ b/xlib/xutil.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: xutil.c,v 1.4 2007/01/02 23:39:40 dkf Exp $
+ * RCS: @(#) $Id: xutil.c,v 1.5 2010/02/19 13:41:49 dkf Exp $
*/
#include <stdlib.h>
@@ -71,6 +71,7 @@ XGetVisualInfo(
int *nitems_return)
{
XVisualInfo *info = (XVisualInfo *) ckalloc(sizeof(XVisualInfo));
+
info->visual = DefaultVisual(display, 0);
info->visualid = info->visual->visualid;
info->screen = 0;