From b7c511ff39ed724b2a113183f77dbba6c12547f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 23 Aug 1995 18:17:01 +0200 Subject: [PATCH] committing Rev: src/debug.h:1.3 Rev: src/svalue.c:1.3 --- src/debug.h | 2 +- src/svalue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debug.h b/src/debug.h index fab056907e..3f666eaf14 100644 --- a/src/debug.h +++ b/src/debug.h @@ -1,6 +1,6 @@ #ifndef DEBUG_H #define DEBUG_H -#include "debug.h" +#include "types.h" /* Prototypes begin here */ struct marker; struct marker_chunk; diff --git a/src/svalue.c b/src/svalue.c index b604501181..04911e133c 100644 --- a/src/svalue.c +++ b/src/svalue.c @@ -231,7 +231,7 @@ void assign_to_short_svalue(union anything *u, } }else if(IS_ZERO(s)){ free_short_svalue(u,type); - u->integer=0; + MEMSET((char *)u,0,sizeof(union anything)); }else{ error("Wrong type in assignment.\n"); } @@ -250,7 +250,7 @@ void assign_to_short_svalue_no_free(union anything *u, *u = tmp = s->u; if(type <= MAX_REF_TYPE) tmp.refs[0]++; }else if(IS_ZERO(s)){ - u->integer=0; + MEMSET((char *)u,0,sizeof(union anything)); }else{ error("Wrong type in assignment.\n"); } -- GitLab