Skip to content

Commit

Permalink
Shut GCC up on some false warning on unset var
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Dec 15, 2016
1 parent dafef25 commit 64fd7f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/registrar/lookup.c
Expand Up @@ -601,6 +601,10 @@ int is_contact_registered(struct sip_msg* _m, char *_d, char* _a,
return -1;
}
curi = val.rs;
} else {
/* this is not really necessary, but just to make gcc happy :P */
curi.s = NULL;
curi.len = 0;
}

if (_cid) {
Expand Down

0 comments on commit 64fd7f6

Please sign in to comment.