Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2005-11-22 23:45:36 +0300
committerKent Mein <mein@cs.umn.edu>2005-11-22 23:45:36 +0300
commit576812004c43168554e13a7b34b0abe70ce7ff23 (patch)
tree661676a732b302e3aaff385717abb598e41b1d30 /source
parent52a13fb71b0ad9741bb274cd578ed0ab909abaf8 (diff)
updated the python script to create a good c file. Thanks intrr.
Kent
Diffstat (limited to 'source')
-rwxr-xr-xsource/blender/imbuf/intern/gen_dynlibtiff.py10
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)