Silenced a few compiler warnings
authorJoshua Leung <aligorith@gmail.com>
Thu, 21 Jun 2007 11:24:42 +0000 (11:24 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 21 Jun 2007 11:24:42 +0000 (11:24 +0000)
source/blender/blenkernel/intern/modifier.c
source/blender/python/api2_2x/Draw.c

index e23fb415d1422fb755c2dd66a88d2103fb5f6dfc..dd65eba0df910881bea446194cd10b0ddb8b2918 100644 (file)
@@ -4334,7 +4334,7 @@ static void waveModifier_do(
        float minfac =
          (float)(1.0 / exp(wmd->width * wmd->narrow * wmd->width * wmd->narrow));
        float lifefac = wmd->height;
-       float (*tex_co)[3];
+       float (*tex_co)[3] = NULL;
 
        if(wmd->flag & MOD_WAVE_NORM && ob->type == OB_MESH)
                mvert = dm->getVertArray(dm);
index 0cdcd20f9a3c331633aa6a7c0c3b95d2d01e5be7..0ea772629d458589bc82db4f8c161db506530feb 100644 (file)
@@ -738,7 +738,7 @@ void BPY_spacescript_do_pywin_event( SpaceScript * sc, unsigned short event,
 static void exec_but_callback(void *pyobj, void *data)
 {
        PyObject *result;
-       PyObject * pyvalue;
+       PyObject *pyvalue = NULL;
        uiBut *but = (uiBut *)data;
        PyObject *arg;
        PyObject *callback = (PyObject *)pyobj;