projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cbd17a
)
Fixed Win95 crash when getenv("DISPLAY") returned NULL ptr.
author
Don Heyse
<dheyse@hotmail.com>
Fri, 29 Nov 2002 17:32:55 +0000
(17:32 +0000)
committer
Don Heyse
<dheyse@hotmail.com>
Fri, 29 Nov 2002 17:32:55 +0000
(17:32 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@39
7f0cb862
-5218-0410-a997-
914c9d46530a
freeglut-1.3/freeglut_init.c
patch
|
blob
|
history
diff --git
a/freeglut-1.3/freeglut_init.c
b/freeglut-1.3/freeglut_init.c
index
2b47456
..
720fb69
100644
(file)
--- a/
freeglut-1.3/freeglut_init.c
+++ b/
freeglut-1.3/freeglut_init.c
@@
-366,6
+366,11
@@
void FGAPIENTRY glutInit( int* pargc, char** argv )
* Grab the environment variable indicating the X display to use.
* This is harmless under Win32, so let's let it stay here...
*/
+#if TARGET_HOST_WIN32
+ if ( !getenv( "DISPLAY" ) )
+ displayName = strdup( "" );
+ else
+#endif
displayName = strdup( getenv( "DISPLAY" ) );
/*