Skip to content
Permalink
Browse files Browse the repository at this point in the history
ResetUri: Protect against NULL
  • Loading branch information
hartwork committed Oct 10, 2018
1 parent 0416b14 commit f58c250
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/UriCommon.c
Expand Up @@ -75,6 +75,9 @@


void URI_FUNC(ResetUri)(URI_TYPE(Uri) * uri) {
if (uri == NULL) {
return;
}
memset(uri, 0, sizeof(URI_TYPE(Uri)));
}

Expand Down

0 comments on commit f58c250

Please sign in to comment.