]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/inspect/mc_unw_vmread.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / mc / inspect / mc_unw_vmread.cpp
index f44e404f5ecdf6a1c5f20eeb33a603b6b390c0c4..ba7fdbab4cddf96f7f865cc8b6177953106d85f3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -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.