Permalink
Browse files

ResetUri: Protect against NULL

  • Loading branch information...
hartwork committed Oct 10, 2018
1 parent 0416b14 commit f58c25069cf4a986fe17a80c5b38687e31feb539
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/UriCommon.c
@@ -75,6 +75,9 @@


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

0 comments on commit f58c250

Please sign in to comment.