Skip to content

Commit

Permalink
Merge pull request #152 from prabhugithubme/scan-build-11-fix
Browse files Browse the repository at this point in the history
Scan-build: Fix Logic error Array subscript is undefined libsofia-sip-ua/bnf/sofia-sip/bnf.h span_unreserved
  • Loading branch information
andywolk authored Jul 1, 2022
2 parents a5198db + 61c11f5 commit fd4e92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsofia-sip-ua/url/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@ void url_string_update(su_md5_t *md5, char const *s)
int have_authority = 1;
enum url_type_e type = url_any;
char const *at, *colon;
char schema[48];
char schema[48] = { 0 };

if (s == NULL || strlen(s) == 0 || strcmp(s, "*") == 0) {
su_md5_update(md5, "*\0\0*", 4);
Expand Down

0 comments on commit fd4e92f

Please sign in to comment.