Cleanup: fix compiler warnings.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 10 Sep 2018 14:12:11 +0000 (16:12 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 10 Sep 2018 16:56:54 +0000 (18:56 +0200)
source/blender/editors/uvedit/uvedit_ops.c

index bb4fbee14837ad4196531413d64857b5f551921a..e57c4cc13f91df90a225541c9dd7b9dbcc2e8fb2 100644 (file)
@@ -3799,7 +3799,7 @@ static int uv_snap_selection_exec(bContext *C, wmOperator *op)
        ToolSettings *ts = scene->toolsettings;
        const bool synced_selection = (ts->uv_flag & UV_SYNC_SELECTION) != 0;
        const int target = RNA_enum_get(op->ptr, "target");
-       float offset[2];
+       float offset[2] = {0};
 
        uint objects_len = 0;
        Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs(view_layer, &objects_len);