fix for unlikely but possible use of uninitialized pointers.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 21 May 2012 10:11:51 +0000 (10:11 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 21 May 2012 10:11:51 +0000 (10:11 +0000)
source/blender/blenkernel/intern/key.c

index d776b05..be3ea38 100644 (file)
@@ -721,7 +721,7 @@ void do_rel_key(const int start, int end, const int tot, char *basispoin, Key *k
        KeyBlock *kb;
        int *ofsp, ofs[3], elemsize, b;
        char *cp, *poin, *reffrom, *from, elemstr[8];
-       char *freefrom, *freereffrom;
+       char *freefrom = NULL, *freereffrom = NULL;
        int poinsize;
 
        /* currently always 0, in future key_pointer_size may assign */