Forráskód Böngészése

fix a minor bug in ipc/shim_ipc_nsimpl.h

Chia-Che Tsai 7 éve
szülő
commit
bbae8f7f4b
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;
         }