Fix dead assignment librz/core/cfile.c

This commit is contained in:
Alexis Ehret 2021-02-01 22:54:54 +01:00 committed by Riccardo Schirone
parent 295f24a8f0
commit 6c14dd0f13

View file

@ -101,12 +101,14 @@ RZ_API int rz_core_file_reopen(RzCore *core, const char *args, int perm, int loa
// XXX - select the right backend
if (core->file) {
newpid = rz_io_fd_get_pid(core->io, core->file->fd);
newtid = rz_io_fd_get_tid(core->io, core->file->fd);
#if __linux__
core->dbg->main_pid = newpid;
newtid = newpid;
#else
newtid = rz_io_fd_get_tid(core->io, core->file->fd);
#endif
}
// Reset previous pid and tid
core->dbg->pid = -1;
core->dbg->tid = -1;