don't throw an error on empty shapes- those are perfectly normal e.g.
[swftools.git] / lib / log.c
index ffa0e17..6313698 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -27,7 +27,7 @@
 
 #include "log.h"
 
-static int screenloglevel = 1;
+int screenloglevel = 1;
 static int fileloglevel = -1;
 static int socketloglevel = -1;
 static int maxloglevel = 1;
@@ -253,7 +253,7 @@ void logf(const char* format, ...)
     /* speed up hack */
     if(format[0]=='<') {
        char*z = "fewnvd";
-       char*x = strchr(z,format[0]);
+       char*x = strchr(z,format[1]);
        if(x && (x-z)>maxloglevel)
                return;
     }