Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
"s < 0" is always true here.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Oct 2020 14:48:49 +0000 (16:48 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Oct 2020 14:56:48 +0000 (16:56 +0200)
src/mc/inspect/mc_unw_vmread.cpp

index f44e404..8bd6292 100644 (file)
@@ -57,9 +57,9 @@ static int access_mem(const unw_addr_space_t as, const unw_word_t addr, unw_word
       return -UNW_EINVAL;
     else
       return 0;
-  }
-  if (s < 0 && errno != ENOSYS)
+  } else if (errno != ENOSYS) {
     return -UNW_EINVAL;
+  }
 #endif
 
   // /proc/${pid}/mem implementation.