Skip to content

Commit

Permalink
ut.h: Remove redundant memset()
Browse files Browse the repository at this point in the history
(cherry picked from commit 2944ba8)
  • Loading branch information
liviuchircu committed Mar 1, 2018
1 parent 34f81b2 commit 1e52799
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ut.h
Expand Up @@ -612,8 +612,6 @@ static inline int shm_nt_str_dup(str* dst, const str* src)
if (!src || !src->s)
return -1;

memset(dst, 0, sizeof *dst);

dst->s = shm_malloc(src->len + 1);
if (!dst->s) {
LM_ERR("no shared memory left\n");
Expand Down

0 comments on commit 1e52799

Please sign in to comment.