Alex Henrie : opengl32: Avoid double initialization of variables in WGL functions.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Nov 5 10:14:54 CST 2015
Module: wine
Branch: master
Commit: 268070d9a8fc3210ac3ffe2e6a9943dbd89c042b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=268070d9a8fc3210ac3ffe2e6a9943dbd89c042b
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Tue Nov 3 22:06:13 2015 -0700
opengl32: Avoid double initialization of variables in WGL functions.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/opengl32/wgl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index acfb243..ee2ae25 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -1057,7 +1057,7 @@ BOOL WINAPI wglGetPixelFormatAttribfvARB( HDC hdc, int format, int layer, UINT c
*/
HPBUFFERARB WINAPI wglCreatePbufferARB( HDC hdc, int format, int width, int height, const int *attribs )
{
- HPBUFFERARB ret = 0;
+ HPBUFFERARB ret;
struct wgl_pbuffer *pbuffer;
struct opengl_funcs *funcs = get_dc_funcs( hdc );
@@ -1749,7 +1749,7 @@ GLint WINAPI glDebugEntry( GLint unknown1, GLint unknown2 )
static GLubyte *filter_extensions_list(const char *extensions, const char *disabled)
{
- char *p, *str = NULL;
+ char *p, *str;
const char *end;
p = str = HeapAlloc(GetProcessHeap(), 0, strlen(extensions) + 2);
@@ -1785,7 +1785,7 @@ static GLuint *filter_extensions_index(const char *disabled)
{
const struct opengl_funcs *funcs = NtCurrentTeb()->glTable;
const char *ext, *end, *gl_ext;
- GLuint *disabled_exts = NULL, *new_disabled_exts;
+ GLuint *disabled_exts, *new_disabled_exts;
unsigned int i = 0, j, disabled_size;
GLint extensions_count;
More information about the wine-cvs
mailing list