From d57484d99125eb602e71629d7cacf76fc36cdd9c Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 26 Dec 2016 19:39:18 -0300 Subject: 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__) --- otr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'otr.c') diff --git a/otr.c b/otr.c index d2c1a2f2..2a2385ce 100644 --- a/otr.c +++ b/otr.c @@ -1513,7 +1513,7 @@ struct im_connection *check_imc(void *opdata, const char *accountname, break; } } - assert(l != NULL); /* a match should always be found */ + g_return_val_if_fail(l, NULL); if (!l) { return NULL; } -- cgit v1.2.3