summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-13 13:11:44 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-13 13:11:44 +0000
commit6bc51d71352aa19ea59d0dcc92f2ad28e3fdf038 (patch)
tree50ad5e8013aa2527ab2bdadb186004153d60ee4d
parenta7ae35e7988269545affa14421dafc2c37792d7e (diff)
downloadopenocd+libswd-6bc51d71352aa19ea59d0dcc92f2ad28e3fdf038.tar.gz
openocd+libswd-6bc51d71352aa19ea59d0dcc92f2ad28e3fdf038.tar.bz2
openocd+libswd-6bc51d71352aa19ea59d0dcc92f2ad28e3fdf038.tar.xz
openocd+libswd-6bc51d71352aa19ea59d0dcc92f2ad28e3fdf038.zip
SEGFAULT gaffe in dummy register handling
git-svn-id: svn://svn.berlios.de/openocd/trunk@1046 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/register.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/register.c b/src/target/register.c
index cb80eff6..7d120ad2 100644
--- a/src/target/register.c
+++ b/src/target/register.c
@@ -126,7 +126,7 @@ void register_init_dummy(reg_t *reg)
{
static int dummy_arch_type = -1;
if (dummy_arch_type == -1 )
- register_reg_arch_type(register_get_dummy_core_reg, register_set_dummy_core_reg);
-
+ dummy_arch_type = register_reg_arch_type(register_get_dummy_core_reg, register_set_dummy_core_reg);
+
reg->arch_type = dummy_arch_type;
}