babl r357 - in trunk: . babl



Author: martinn
Date: Sun Nov 16 12:55:17 2008
New Revision: 357
URL: http://svn.gnome.org/viewvc/babl?rev=357&view=rev

Log:
* babl/babl-fish-path.c: Use the default babl tolerance level if
BABL_TOLERANCE is the empty string so that we don't get a
tolerance level of 0.0 in that case.


Modified:
   trunk/ChangeLog
   trunk/babl/babl-fish-path.c

Modified: trunk/babl/babl-fish-path.c
==============================================================================
--- trunk/babl/babl-fish-path.c	(original)
+++ trunk/babl/babl-fish-path.c	Sun Nov 16 12:55:17 2008
@@ -68,7 +68,7 @@
     return error;
 
   env = getenv ("BABL_TOLERANCE");
-  if (env)
+  if (env && env[0] != '\0')
     error = atof (env);
   else
     error = BABL_LEGAL_ERROR;



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