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:
parent
eb45a8e0f0
commit
6ac6d4f1ec
@ -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(;;)
|
||||
|
Loading…
Reference in New Issue
Block a user