Browse Source

fix a minor bug in ipc/shim_ipc_nsimpl.h

Chia-Che Tsai 6 years ago
parent
commit
bbae8f7f4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LibOS/shim/src/ipc/shim_ipc_nsimpl.h

+ 1 - 1
LibOS/shim/src/ipc/shim_ipc_nsimpl.h

@@ -376,7 +376,7 @@ int CONCAT3(add, NS, subrange) (IDTYPE idx, IDTYPE owner,
             goto failed;
         }
 
-        if ((err == __add_range(r, off, 0, NULL, 0)) < 0) {
+        if ((err = __add_range(r, off, 0, NULL, 0)) < 0) {
             free(r);
             goto failed;
         }