X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;h=57bb0209a40b3561a55aeb7ede92c3f2202b23b9;hb=2badda80f21aaceb769a75861b52642e276e2e80;hp=cdb9e66be9d872361df5511a10dc45a1074b57dd;hpb=4cb147e54debc316cb9c142159873ad24e0359ad;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index cdb9e66..57bb020 100644 --- 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 )