projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
123cc1d
)
Fixing a null argument to 'strdup' per e-mail from Eero Pajarre dated 6/8/2011 4...
author
John F. Fay
<johnffay@nettally.com>
Fri, 10 Jun 2011 03:53:12 +0000
(
03:53
+0000)
committer
John F. Fay
<johnffay@nettally.com>
Fri, 10 Jun 2011 03:53:12 +0000
(
03:53
+0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@926
7f0cb862
-5218-0410-a997-
914c9d46530a
src/freeglut_init.c
patch
|
blob
|
history
diff --git
a/src/freeglut_init.c
b/src/freeglut_init.c
index
cdb9e66
..
57bb020
100644
(file)
--- a/
src/freeglut_init.c
+++ b/
src/freeglut_init.c
@@
-314,7
+314,7
@@
static void fghInitialize( const char* displayName )
/* What we need to do is to initialize the fgDisplay global structure here. */
fgDisplay.Instance = GetModuleHandle( NULL );
- fgDisplay.DisplayName=strdup(displayName);
+ fgDisplay.DisplayName= displayName ? strdup(displayName) : 0 ;
atom = GetClassInfo( fgDisplay.Instance, _T("FREEGLUT"), &wc );
if( atom == 0 )