Skip to content

Commit

Permalink
mid_registrar: Fix compile warnings
Browse files Browse the repository at this point in the history
Closes #1031
  • Loading branch information
liviuchircu committed Feb 6, 2017
1 parent b30af73 commit a0c1455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mid_registrar/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ static inline int insert_rpl_contacts(struct sip_msg *req, struct sip_msg* rpl,
struct mid_reg_info *cti;
ucontact_info_t* ci = NULL;
ucontact_t* c;
contact_t *_c, *__c;
contact_t *_c = NULL, *__c;
unsigned int cflags;
int e, e_out;
int e_max = 0;
Expand Down Expand Up @@ -2189,7 +2189,7 @@ int mid_reg_save(struct sip_msg *msg, char *dom, char *flags_gp,
urecord_t *rec;
str flags_str = { NULL, 0 }, to_uri = { NULL, 0 };
struct save_ctx sctx;
int rc, st;
int rc = -1, st;

if (msg->REQ_METHOD != METHOD_REGISTER) {
LM_ERR("ignoring non-REGISTER SIP request (%d)\n", msg->REQ_METHOD);
Expand Down

0 comments on commit a0c1455

Please sign in to comment.