diff options
author | Kent Mein <mein@cs.umn.edu> | 2005-11-22 23:45:36 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2005-11-22 23:45:36 +0300 |
commit | 576812004c43168554e13a7b34b0abe70ce7ff23 (patch) | |
tree | 661676a732b302e3aaff385717abb598e41b1d30 /source/blender/imbuf/intern/gen_dynlibtiff.py | |
parent | 52a13fb71b0ad9741bb274cd578ed0ab909abaf8 (diff) |
updated the python script to create a good c file. Thanks intrr.
Kent
Diffstat (limited to 'source/blender/imbuf/intern/gen_dynlibtiff.py')
-rwxr-xr-x | source/blender/imbuf/intern/gen_dynlibtiff.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/imbuf/intern/gen_dynlibtiff.py b/source/blender/imbuf/intern/gen_dynlibtiff.py index fd58645eb6d..70bda45f214 100755 --- a/source/blender/imbuf/intern/gen_dynlibtiff.py +++ b/source/blender/imbuf/intern/gen_dynlibtiff.py @@ -117,7 +117,6 @@ void libtiff_loadlibtiff() { char *filename; libtiff = NULL; - int size; /* Try to find libtiff in a couple of standard places */ libtiff = PIL_dynlib_open("libtiff.so"); @@ -135,13 +134,8 @@ void libtiff_loadlibtiff() libtiff = PIL_dynlib_open("/usr/openwin/lib/libtiff.so"); if (libtiff != NULL) return; - size = sizeof(getenv("BF_TIFF_LIB")); - - filename = MEM_mallocN(size * sizeof(unsigned char),"ENVVAR"); - memcpy(filename,getenv("BF_TIFF_LIB"),size); - libtiff = PIL_dynlib_open(filename); - MEM_freeN(filename); - if (libtiff != NULL) return; + filename = getenv("BF_TIFF_LIB"); + if (filename) libtiff = PIL_dynlib_open(filename); } void *libtiff_findsymbol(char *name) |