diff --git a/libr/core/disasm.c b/libr/core/disasm.c index 65710963b4..2553ee761d 100644 --- a/libr/core/disasm.c +++ b/libr/core/disasm.c @@ -414,7 +414,7 @@ static char *colorize_asm_string(RCore *core, RDisasmState *ds) { scol1 = r_print_colorize_opcode (s1, ds->color_reg, ds->color_num); free(s1); scol2 = r_print_colorize_opcode (s2, ds->color_reg, ds->color_num); free(s2); if (!scol1) scol1 = strdup (""); - if (!scol2) scol1 = strdup (""); + if (!scol2) scol2 = strdup (""); source = malloc (strlen(scol1) + strlen(scol2) + 2 + 1); // reuse source variable sprintf (source, "%s||%s", scol1, scol2);