]> git.0d.be Git - jack_mixer.git/commitdiff
Initialize threshold before using it
authorFrédéric Péters <fpeters@0d.be>
Tue, 12 Jul 2011 15:27:14 +0000 (17:27 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 12 Jul 2011 15:27:14 +0000 (17:27 +0200)
scale.c

diff --git a/scale.c b/scale.c
index 5efba192241fdee66075ac4d497260a407aaeb98..97dd701d17e30a1fd1e98e08ed9170bdbcb194c4 100644 (file)
--- a/scale.c
+++ b/scale.c
@@ -83,9 +83,10 @@ scale_add_threshold(
   struct threshold * threshold_ptr;
 
   LOG_DEBUG("Adding threshold (%f dBFS -> %f) to scale %p", db, scale, scale_ptr);
-  LOG_DEBUG("Threshold %p created ", threshold_ptr, db, scale);
 
   threshold_ptr = malloc(sizeof(struct threshold));
+  LOG_DEBUG("Threshold %p created ", threshold_ptr, db, scale);
+
   if (threshold_ptr == NULL)
   {
     return false;