From 83db3bbee4e19e7426a32ee89ad6c2d8e48260f2 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 18 Jun 2013 20:03:57 -0700 Subject: Also poison memcpy, memmove, and memset --- src/map/magic-interpreter-parser.ypp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/magic-interpreter-parser.ypp') diff --git a/src/map/magic-interpreter-parser.ypp b/src/map/magic-interpreter-parser.ypp index 2cec1f2..c5a7dd8 100644 --- a/src/map/magic-interpreter-parser.ypp +++ b/src/map/magic-interpreter-parser.ypp @@ -120,7 +120,7 @@ val_t *find_constant(const std::string& name); dumb_ptr proc; // evil hackery - YYSTYPE() { memset(this, '\0', sizeof(*this)); } + YYSTYPE() { really_memzero_this(this); } ~YYSTYPE() = default; YYSTYPE(const YYSTYPE& rhs) = default; YYSTYPE& operator = (const YYSTYPE& rhs) = default; -- cgit v1.2.3-60-g2f50