diff options
author | Alexander Ewering <blender@instinctive.de> | 2005-11-22 23:41:15 +0300 |
---|---|---|
committer | Alexander Ewering <blender@instinctive.de> | 2005-11-22 23:41:15 +0300 |
commit | 52a13fb71b0ad9741bb274cd578ed0ab909abaf8 (patch) | |
tree | 82e81f7385d51b7b65de14b699d9a2ba005c478e /source/blender/imbuf/intern/dynlibtiff.c | |
parent | d234f611f51aef0fff38634e0581727513d62359 (diff) |
Made the envvar stuff work and slightly simplified it ;-)
Diffstat (limited to 'source/blender/imbuf/intern/dynlibtiff.c')
-rw-r--r-- | source/blender/imbuf/intern/dynlibtiff.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/imbuf/intern/dynlibtiff.c b/source/blender/imbuf/intern/dynlibtiff.c index 553449cf159..1246b639cb1 100644 --- a/source/blender/imbuf/intern/dynlibtiff.c +++ b/source/blender/imbuf/intern/dynlibtiff.c @@ -75,7 +75,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"); @@ -93,13 +92,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) |