quiet warning & minor pep8 edits.
[blender.git] / source / blender / blenkernel / intern / pointcache.c
index 587d1dc01a2afe3435d9268d0db16c37302731d4..a8447e2a12ac9c43099834c77a10fdff0cb91912 100644 (file)
@@ -1028,7 +1028,6 @@ static int ptcache_file_compressed_read(PTCacheFile *pf, unsigned char *result,
        size_t in_len;
 #ifdef WITH_LZO
        size_t out_len = len;
-       size_t sizeOfIt = 5;
 #endif
        unsigned char *in;
        unsigned char *props = MEM_callocN(16*sizeof(char), "tmp");
@@ -1051,6 +1050,7 @@ static int ptcache_file_compressed_read(PTCacheFile *pf, unsigned char *result,
 #ifdef WITH_LZMA
                        if(compressed == 2)
                        {
+                               size_t sizeOfIt;
                                size_t leni = in_len, leno = out_len;
                                ptcache_file_read(pf, &size, 1, sizeof(unsigned int));
                                sizeOfIt = (size_t)size;