MSVC cries of uninitialized param
authorShaul Kedem <shaul_kedem@yahoo.com>
Fri, 5 Jun 2009 13:20:42 +0000 (13:20 +0000)
committerShaul Kedem <shaul_kedem@yahoo.com>
Fri, 5 Jun 2009 13:20:42 +0000 (13:20 +0000)
source/blender/editors/space_view3d/view3d_view.c

index 06e5f69bbdf7ca108302dd910c08295de66d0be9..e1a6f32aa41fd09726e8223155d5f994d2f7f82c 100644 (file)
@@ -203,6 +203,7 @@ void smooth_view(bContext *C, Object *oldcamera, Object *camera, float *ofs, flo
        struct SmoothViewStore sms;
        
        /* initialize sms */
+       memset(&sms,0,sizeof(struct SmoothViewStore));
        VECCOPY(sms.new_ofs, rv3d->ofs);
        QUATCOPY(sms.new_quat, rv3d->viewquat);
        sms.new_dist= rv3d->dist;