Skip to content

Commit

Permalink
xhttp: do not call memset on a null-pointer, related to GH #2619
Browse files Browse the repository at this point in the history
(cherry picked from commit 2db8884)
  • Loading branch information
henningw authored and miconda committed Feb 9, 2021
1 parent 989baff commit a2e0e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/xhttp/xhttp_trans.c
Expand Up @@ -66,7 +66,7 @@ int xhttp_tr_eval_xhttpurl(
(char *)pkg_malloc((val->rs.len + 1) * sizeof(char));
if(_httpurl_str.s == NULL) {
PKG_MEM_ERROR;
memset(&_httpurl_str.s, 0, sizeof(str));
memset(&_httpurl_str, 0, sizeof(str));
return -1;
}
}
Expand Down

0 comments on commit a2e0e49

Please sign in to comment.