Avoid C99 declaration after statement

The rest of the library is C89-only, so we should keep it that way.
macos/v1.5.9
Emmanuele Bassi 8 years ago
parent f62c9d92d0
commit ad1f9204a2
  1. 5
      src/dispatch_common.c

@ -347,11 +347,12 @@ epoxy_conservative_gl_version(void)
bool
epoxy_extension_in_string(const char *extension_list, const char *ext)
{
if (!extension_list)
return false;
const char *ptr = extension_list;
int len = strlen(ext);
if (extension_list == NULL || *extension_list == '\0')
return false;
/* Make sure that don't just find an extension with our name as a prefix. */
while (true) {
ptr = strstr(ptr, ext);

Loading…
Cancel
Save