aboutsummaryrefslogtreecommitdiffstats
path: root/otr.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 /otr.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 'otr.c')
-rw-r--r--otr.c2
1 files changed, 1 insertions, 1 deletions
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;
}