X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;h=75908c980af8e794a7d055e8e8b2cd28c96b7395;hb=cb35752f171cdd1ee2319194c890d86bc6242259;hp=5c92464dc69a0a20fe91482117c9f90023cdda2e;hpb=45386a7fdf1d3e2e97f4a8f6928cfcff6a7534c6;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index 5c92464..75908c9 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -594,11 +594,8 @@ void FGAPIENTRY glutInit( int* pargc, char** argv ) } } - /* - * Compact {argv}. - */ - j = 1; - for( i = 1; i < *pargc; i++, j++ ) + /* Compact {argv}. */ + for( i = j = 1; i < *pargc; i++, j++ ) { /* Guaranteed to end because there are "*pargc" arguments left */ while ( argv[ j ] == NULL )