From 6c14dd0f13bfde7fe2b85aaee7ae6c775c0bf690 Mon Sep 17 00:00:00 2001 From: Alexis Ehret <08a@riseup.net> Date: Mon, 1 Feb 2021 22:54:54 +0100 Subject: [PATCH] Fix dead assignment librz/core/cfile.c --- librz/core/cfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/librz/core/cfile.c b/librz/core/cfile.c index 803353b5c5..7e310ac00d 100644 --- a/librz/core/cfile.c +++ b/librz/core/cfile.c @@ -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;