[Bf-blender-cvs] [bbab2ec] master: Fix clang warning for (harmless) use of uninitialized variable.

Brecht Van Lommel noreply at git.blender.org
Fri Jan 10 19:44:13 CET 2014


Commit: bbab2ecd43cea89131619d525770f86d4154f26a
Author: Brecht Van Lommel
Date:   Fri Jan 10 19:43:31 2014 +0100
https://developer.blender.org/rBbbab2ecd43cea89131619d525770f86d4154f26a

Fix clang warning for (harmless) use of uninitialized variable.

===================================================================

M	source/blender/editors/gpencil/gpencil_edit.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index afc63ca..f235ef4 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -969,7 +969,7 @@ static void gp_stroke_to_path(bContext *C, bGPDlayer *gpl, bGPDstroke *gps, Curv
 	}
 	else if (add_start_point) {
 		float p[3], next_p[3];
-		float dt;
+		float dt = 0.0f;
 
 		gp_strokepoint_convertcoords(C, gps, gps->points, p, subrect);
 		if (gps->totpoints > 1) {
@@ -1210,7 +1210,7 @@ static void gp_stroke_to_bezier(bContext *C, bGPDlayer *gpl, bGPDstroke *gps, Cu
 	}
 	else if (add_start_point) {
 		float p[3];
-		float dt;
+		float dt = 0.0f;
 
 		if (gps->totpoints > 1) {
 			interp_v3_v3v3(p, p3d_cur, p3d_next, -GAP_DFAC);




More information about the Bf-blender-cvs mailing list