From 695ab62056c51655792d34b847df04d0ffc4e9f7 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 16 Sep 2001 20:17:23 +0000 Subject: [PATCH] Whoa, oops! Bad bug in bytecode_new_common (wasn't returning allocated bc). svn path=/trunk/yasm/; revision=166 --- libyasm/bytecode.c | 6 ++++-- src/bytecode.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libyasm/bytecode.c b/libyasm/bytecode.c index e5954562..04812785 100644 --- a/libyasm/bytecode.c +++ b/libyasm/bytecode.c @@ -1,4 +1,4 @@ -/* $Id: bytecode.c,v 1.21 2001/09/16 19:44:49 peter Exp $ +/* $Id: bytecode.c,v 1.22 2001/09/16 20:17:23 peter Exp $ * Bytecode utility functions * * Copyright (C) 2001 Peter Johnson @@ -41,7 +41,7 @@ #include "bytecode.h" -RCSID("$Id: bytecode.c,v 1.21 2001/09/16 19:44:49 peter Exp $"); +RCSID("$Id: bytecode.c,v 1.22 2001/09/16 20:17:23 peter Exp $"); /* Static structures for when NULL is passed to conversion functions. */ /* for Convert*ToEA() */ @@ -261,6 +261,8 @@ bytecode_new_common(void) bc->offset = 0; bc->mode_bits = mode_bits; + + return bc; } bytecode * diff --git a/src/bytecode.c b/src/bytecode.c index e5954562..04812785 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -1,4 +1,4 @@ -/* $Id: bytecode.c,v 1.21 2001/09/16 19:44:49 peter Exp $ +/* $Id: bytecode.c,v 1.22 2001/09/16 20:17:23 peter Exp $ * Bytecode utility functions * * Copyright (C) 2001 Peter Johnson @@ -41,7 +41,7 @@ #include "bytecode.h" -RCSID("$Id: bytecode.c,v 1.21 2001/09/16 19:44:49 peter Exp $"); +RCSID("$Id: bytecode.c,v 1.22 2001/09/16 20:17:23 peter Exp $"); /* Static structures for when NULL is passed to conversion functions. */ /* for Convert*ToEA() */ @@ -261,6 +261,8 @@ bytecode_new_common(void) bc->offset = 0; bc->mode_bits = mode_bits; + + return bc; } bytecode * -- 2.50.1