aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/purple.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-12-26 19:39:18 -0300
committerdequis <dx@dxzone.com.ar>2016-12-26 19:39:18 -0300
commitd57484d99125eb602e71629d7cacf76fc36cdd9c (patch)
tree4ca56875a5b22ee30505c8ffad847c50cabf3950 /protocols/purple/purple.c
parent90a45b8fc30a0b8b96c60926e638291fc0d0fa08 (diff)
Change some asserts into g_return_if_fail()
Because crashing asserts are bad, and maybe this helps fix the captures_build_path issue with debian's reproducible builds (those asserts probably include __FILE__)
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r--protocols/purple/purple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 9e0dc57e..4c560818 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -1689,8 +1689,8 @@ void purple_initmodule()
return;
}
- g_assert((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ);
- g_assert((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE);
+ g_return_if_fail((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ);
+ g_return_if_fail((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE);
dir = g_strdup_printf("%s/purple", global.conf->configdir);
purple_util_set_user_dir(dir);