]> granicus.if.org Git - yasm/commitdiff
Whoa, oops! Bad bug in bytecode_new_common (wasn't returning allocated bc).
authorPeter Johnson <peter@tortall.net>
Sun, 16 Sep 2001 20:17:23 +0000 (20:17 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 16 Sep 2001 20:17:23 +0000 (20:17 -0000)
svn path=/trunk/yasm/; revision=166

libyasm/bytecode.c
src/bytecode.c

index e595456214ea1fd4e1ea6c22c965bc9616b5f3cd..0481278545bf3b96273f78b00909e137aec6fa1e 100644 (file)
@@ -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 *
index e595456214ea1fd4e1ea6c22c965bc9616b5f3cd..0481278545bf3b96273f78b00909e137aec6fa1e 100644 (file)
@@ -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 *