[babl] babl: make malloc implementation stability sanity check non-fatal



commit d9146bbdd48a9624380884afd55e1c5933844b73
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jul 2 06:20:13 2014 +0200

    babl: make malloc implementation stability sanity check non-fatal

 babl/babl-memory.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-memory.c b/babl/babl-memory.c
index 6ceca90..ff171d7 100644
--- a/babl/babl-memory.c
+++ b/babl/babl-memory.c
@@ -91,7 +91,9 @@ functions_sanity (void)
         }
       else
         {
-          babl_fatal ("babl memory function(s) attempted switched on the fly");
+          fprintf (stderr, "HMM....\nSomething strange is happening,\n%s function pointer changing between 
invocations in babl.\n",
+              first_malloc_used == malloc_f ? 
+              first_free_used == free_f ? "malloc and free" : "malloc" : "free");
         }
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]