Versino 5.0.21
[yaz-moved-to-github.git] / src / log.c
index eccb1ed..b439c4c 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -577,11 +577,12 @@ int yaz_log_mask_str(const char *str)
     return yaz_log_mask_str_x(str, l_level);
 }
 
+/* this function is called by yaz_log_init_globals & yaz_init_globals
+   and, thus, may not call any of them indirectly */
 int yaz_log_mask_str_x(const char *str, int level)
 {
     const char *p;
 
-    yaz_init_globals();
     while (*str)
     {
         int negated = 0;