1
0
forked from 0ad/0ad

Fix #1062 (incorrect check for empty string), based on patch by Echelon9

This was SVN commit r10821.
This commit is contained in:
Ykkrosh 2011-12-29 01:07:20 +00:00
parent eb45a8e0f0
commit 6ac6d4f1ec

View File

@ -194,7 +194,7 @@ bool ogl_HaveExtension(const char* ext)
const char *p = exts, *end;
// make sure ext is valid & doesn't contain spaces
if(!ext || ext == '\0' || strchr(ext, ' '))
if(!ext || ext[0] == '\0' || strchr(ext, ' '))
return false;
for(;;)