Make FcInitDebug() idempotent

This commit is contained in:
Behdad Esfahbod 2012-10-07 16:09:35 -04:00
parent b97ab0c949
commit 7019896c99
1 changed files with 10 additions and 8 deletions

View File

@ -455,6 +455,7 @@ int FcDebugVal;
void void
FcInitDebug (void) FcInitDebug (void)
{ {
if (!FcDebugVal) {
char *e; char *e;
e = getenv ("FC_DEBUG"); e = getenv ("FC_DEBUG");
@ -466,6 +467,7 @@ FcInitDebug (void)
FcDebugVal = 0; FcDebugVal = 0;
} }
} }
}
#define __fcdbg__ #define __fcdbg__
#include "fcaliastail.h" #include "fcaliastail.h"
#undef __fcdbg__ #undef __fcdbg__