]> git.sur5r.net Git - openocd/commitdiff
SEGFAULT gaffe in dummy register handling
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 13 Oct 2008 13:11:44 +0000 (13:11 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 13 Oct 2008 13:11:44 +0000 (13:11 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1046 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/register.c

index cb80eff658f6bcc1923dd59dd1ac6e4f5cefc5a4..7d120ad279ab0e732609507bd6dc7b1eb57d28f9 100644 (file)
@@ -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;
 }