aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 659da6be7d..bbeb215ba9 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -574,7 +574,7 @@ e_flexible_strtod (const gchar *nptr, gchar **endptr)
decimal_point = locale_data->decimal_point;
decimal_point_len = strlen (decimal_point);
- g_assert (decimal_point_len != 0);
+ g_return_val_if_fail (decimal_point_len != 0, 0);
decimal_point_pos = NULL;
if (!strcmp (decimal_point, "."))
@@ -730,7 +730,7 @@ e_ascii_dtostr (gchar *buffer, gint buf_len, const gchar *format, gdouble d)
decimal_point = locale_data->decimal_point;
decimal_point_len = strlen (decimal_point);
- g_assert (decimal_point_len != 0);
+ g_return_val_if_fail (decimal_point_len != 0, NULL);
if (strcmp (decimal_point, ".")) {
p = buffer;