summaryrefslogtreecommitdiff
path: root/lib/typerb.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/typerb.c')
-rw-r--r--lib/typerb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/typerb.c b/lib/typerb.c
index 092faa4cc9..151d91ce20 100644
--- a/lib/typerb.c
+++ b/lib/typerb.c
@@ -45,6 +45,7 @@
#include "config.h"
#endif
+#include <string.h>
#include "typerb.h"
#define RB_BLACK 0
@@ -330,6 +331,7 @@ color:
rbe_remove_color(rbt, parent, child);
rbt->count--;
+ memset(old, 0, sizeof(*old));
return (old);
}