Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Feb 21, 2018
1 parent 514c8a2 commit 72b2953
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libr/core/panels.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static void panel_continue(RCore *core) {
r_core_cmd (core, "dc", 0);
}

static void init (RCore *core, int w, int h) {
static bool init (RCore *core, int w, int h) {
panels = NULL;
layout = 0;
_core = core;
Expand All @@ -528,6 +528,7 @@ static void init (RCore *core, int w, int h) {
COLW = w / 3;
}
reloadPanels (core);
return true;
}

R_API int r_core_visual_panels(RCore *core) {
Expand All @@ -538,7 +539,9 @@ R_API int r_core_visual_panels(RCore *core) {
int have_utf8 = 0;

w = r_cons_get_size (&h);
init (core, w, h);
if (!init (core, w, h)) {
return false;
}

asm_comments = r_config_get_i (core->config, "asm.comments");
asm_bytes = r_config_get_i (core->config, "asm.bytes");
Expand Down

0 comments on commit 72b2953

Please sign in to comment.