diff options
Diffstat (limited to 'src/gui/status.c')
-rw-r--r-- | src/gui/status.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/status.c b/src/gui/status.c index a3daded..f1171bd 100644 --- a/src/gui/status.c +++ b/src/gui/status.c @@ -250,9 +250,11 @@ static void track_caret_address_for_status_info(GStatusInfo *info, GtkBufferView static void focus_address_in_status_info(GStatusInfo *info, GLoadedBinary *binary, const vmpa2t *addr) { + GEditorItem *item; /* Autre version de l'élément */ GArchProcessor *proc; /* Architecture du binaire */ GArchInstruction *instr; /* Instruction présente */ - GEditorItem *item; /* Autre version de l'élément */ + + item = G_EDITOR_ITEM(info); if (addr == NULL) gtk_status_stack_reset_current_instruction(GTK_STATUS_STACK(item->widget)); @@ -264,7 +266,6 @@ static void focus_address_in_status_info(GStatusInfo *info, GLoadedBinary *binar instr = _g_arch_processor_find_instr_by_address(proc, addr, true); assert(instr != NULL); - item = G_EDITOR_ITEM(info); gtk_status_stack_update_current_instruction(GTK_STATUS_STACK(item->widget), binary, instr); g_object_unref(G_OBJECT(proc)); |