diff options
author | Bryan Drewery <bryan@shatow.net> | 2019-02-12 21:49:38 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2019-02-12 21:49:38 +0300 |
commit | 6df43071f25cdfab2210083837634136575b9c53 (patch) | |
tree | bfdff31150e04a3d32a7f2209934a6a78cf1e0d2 /src/poudriere-sh | |
parent | 323b20927602f4b8903b96d2daba8758b738810d (diff) |
Fix invalid memset(3)
Diffstat (limited to 'src/poudriere-sh')
-rw-r--r-- | src/poudriere-sh/helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poudriere-sh/helpers.c b/src/poudriere-sh/helpers.c index ac5712ec..02702876 100644 --- a/src/poudriere-sh/helpers.c +++ b/src/poudriere-sh/helpers.c @@ -63,7 +63,7 @@ _trap_push(int signo, struct sigdata *sd, bool sh) char *action_str = "-", *t; int action; - memset(sd, sizeof(*sd), 0); + memset(sd, 0, sizeof(*sd)); sd->signo = signo; sd->sh = sh; |