mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-04 03:58:32 +00:00
parent
ec6b809728
commit
37673daebf
@ -509,7 +509,6 @@ static int cmd_section(void *data, const char *input) {
|
||||
break;
|
||||
default:
|
||||
{
|
||||
RIOSection *s;
|
||||
int i, rwx = 7;
|
||||
char *ptr = strdup (input + 1);
|
||||
const char *name = NULL;
|
||||
@ -550,10 +549,7 @@ static int cmd_section(void *data, const char *input) {
|
||||
sprintf (vname, "area%d", (int)ls_length (core->io->sections));
|
||||
name = vname;
|
||||
}
|
||||
s = r_io_section_add (core->io, offset, vaddr, size, vsize, rwx, name, 0, fd);
|
||||
if (s) {
|
||||
r_io_section_apply (core->io, s->id, R_IO_SECTION_APPLY_FOR_ANALYSIS);
|
||||
}
|
||||
r_io_section_add (core->io, offset, vaddr, size, vsize, rwx, name, 0, fd);
|
||||
free (ptr);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user