Ignore:
Timestamp:
2016-12-26T22:39:18Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
a04705b
Parents:
90a45b8
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/rxhandlers.c

    r90a45b8 rd57484d  
    235235        struct aim_rxcblist_s *newcb;
    236236
    237         if (!conn) {
    238                 return -1;
    239         }
    240 
    241         if (checkdisallowed(family, type)) {
    242                 g_assert(0);
    243                 return -1;
    244         }
     237        g_return_val_if_fail(conn, -1);
     238        g_return_val_if_fail(checkdisallowed(family, type), -1);
    245239
    246240        if (!(newcb = (struct aim_rxcblist_s *) g_new0(struct aim_rxcblist_s, 1))) {
Note: See TracChangeset for help on using the changeset viewer.