diff tools/lib64gfx.c @ 1134:d0898867ec4c

Various fixes for issues reported by clang static analyzer.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2015 08:38:19 +0200
parents 985225a93aeb
children 848a88ce7a57
line wrap: on
line diff
--- a/tools/lib64gfx.c	Wed Mar 04 07:16:06 2015 +0200
+++ b/tools/lib64gfx.c	Wed Mar 04 08:38:19 2015 +0200
@@ -645,6 +645,7 @@
                 score = DM_PROBE_SCORE_GOOD;
         }
         else
+        if (fmt->probe != NULL)
             score = fmt->probe(buf, len, fmt);
 
         if (score > scoreMax)