Commit 772d51c9 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig

use static vars to indicate "firsttime"

parent 1cf61955
...@@ -83,7 +83,7 @@ static void imageTIFF_warnhandler(const char*module, const char*fmt, ...@@ -83,7 +83,7 @@ static void imageTIFF_warnhandler(const char*module, const char*fmt,
imageTIFF :: imageTIFF(void) imageTIFF :: imageTIFF(void)
{ {
bool firsttime=true; static bool firsttime=true;
if(firsttime) { if(firsttime) {
TIFFSetErrorHandler(imageTIFF_errorhandler); TIFFSetErrorHandler(imageTIFF_errorhandler);
TIFFSetWarningHandler(imageTIFF_warnhandler); TIFFSetWarningHandler(imageTIFF_warnhandler);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment