Navigation


Changeset 1151:100a0925f809 in freeDiameter for libfdproto


Ignore:
Timestamp:
May 22, 2013, 10:37:48 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of issues reported by cppcheck: http://lists.freediameter.net/pipermail/dev/2013-May/000214.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/dispatch.c

    r1127 r1151  
    123123        struct fd_list * cb_list = NULL;
    124124        struct disp_hdl * new;
    125         struct dict_object * type_enum, * type_avp;
     125        struct dict_object * type_enum = NULL, * type_avp;
    126126        struct dictionary  * dict = NULL;
    127127       
     
    150150                        if (dict) {
    151151                                CHECK_FCT( fd_dict_search(dict, DICT_TYPE, TYPE_OF_AVP, when->avp, &type_avp, EINVAL) );
    152                                 CHECK_PARAMS( type_enum == type_avp );
     152                                if (type_enum) {
     153                                        CHECK_PARAMS( type_enum == type_avp );
     154                                }
    153155                        }
    154156                        break;
Note: See TracChangeset for help on using the changeset viewer.