about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/core/asmbloc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py
index ac317e0b..ac778280 100644
--- a/miasm2/core/asmbloc.py
+++ b/miasm2/core/asmbloc.py
@@ -608,7 +608,7 @@ shape = "box"
                 dst, name, cst = b.label.name, n.label.name, n.c_t
                 # out+='%s -> %s [ label = "%s" ];\n'%(b.label.name,
                 # n.label.name, n.c_t)
-            elif isinstance(b.label, asm_label):
+            elif isinstance(n.label, asm_label):
                 dst, name, cst = b.label.name, n.label.name, n.c_t
             else:
                 continue