From 7164da7467b0b2570d1e90c40844a322335f30ec Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 15 Jun 2010 16:42:30 +0100 Subject: [PATCH] Set the initial value of a variable Fixes a compiler warning. --- clutter/cogl/cogl/cogl-primitives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-primitives.c b/clutter/cogl/cogl/cogl-primitives.c index 88435c61b..cae19e5e9 100644 --- a/clutter/cogl/cogl/cogl-primitives.c +++ b/clutter/cogl/cogl/cogl-primitives.c @@ -1094,7 +1094,7 @@ cogl_polygon (const CoglTextureVertex *vertices, GLfloat *v; CoglMaterialWrapModeOverrides wrap_mode_overrides; CoglMaterialWrapModeOverrides *wrap_mode_overrides_p = NULL; - CoglHandle original_source_material; + CoglHandle original_source_material = NULL; gboolean overrode_material = FALSE; _COGL_GET_CONTEXT (ctx, NO_RETVAL);