diff options
author | Eric Engestrom <[email protected]> | 2017-07-30 02:11:59 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-08-01 17:43:15 +0100 |
commit | e7fb7fd4eae5fdfb0280b769deb6dc7f13933b2e (patch) | |
tree | 5f760a048aa0783834c53e89523e2132a9f39a68 /src/egl/main | |
parent | c3b223f48f201c5472771fe96c002d29d9decfac (diff) |
egl: remove unnecessary empty array element
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/egldriver.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index b9b21dec5ea..60753bb22e9 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -63,7 +63,6 @@ const struct { #ifdef _EGL_BUILT_IN_DRIVER_HAIKU { "egl_haiku", _eglBuiltInDriverHaiku }, #endif - { NULL, NULL } }; /** @@ -172,7 +171,7 @@ _eglAddUserDriver(void) if (env) { EGLint i; - for (i = 0; _eglBuiltInDrivers[i].name; i++) { + for (i = 0; i < ARRAY_SIZE(_eglBuiltInDrivers); i++) { if (!strcmp(_eglBuiltInDrivers[i].name, env)) { _EGLModule *mod = _eglAddModule(env); if (mod) @@ -196,7 +195,7 @@ _eglAddBuiltInDrivers(void) _EGLModule *mod; EGLint i; - for (i = 0; _eglBuiltInDrivers[i].name; i++) { + for (i = 0; i < ARRAY_SIZE(_eglBuiltInDrivers); i++) { mod = _eglAddModule(_eglBuiltInDrivers[i].name); if (mod) mod->BuiltIn = _eglBuiltInDrivers[i].main; |