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
diff options
context:
space:
mode:
authorAlexander Ewering <blender@instinctive.de>2005-11-22 23:41:15 +0300
committerAlexander Ewering <blender@instinctive.de>2005-11-22 23:41:15 +0300
commit52a13fb71b0ad9741bb274cd578ed0ab909abaf8 (patch)
tree82e81f7385d51b7b65de14b699d9a2ba005c478e /source/blender/imbuf/intern/dynlibtiff.c
parentd234f611f51aef0fff38634e0581727513d62359 (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.c10
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)