]> Zhao Yanbai Git Server - minix.git/commitdiff
only assign value if request went ok.
authorBen Gras <ben@minix3.org>
Thu, 19 Feb 2009 17:14:36 +0000 (17:14 +0000)
committerBen Gras <ben@minix3.org>
Thu, 19 Feb 2009 17:14:36 +0000 (17:14 +0000)
lib/syslib/ds.c

index 833fd943ed0d10a6ba723d94cfe20dfdd6870717..d647c41d508ec5f8f1e8fa1b239fe7bb0f5618f8 100644 (file)
@@ -131,8 +131,10 @@ u32_t *value;
 
        cpf_revoke(g_key);
 
-       /* Assign u32 value. */
-       *value = m.DS_VAL;
+       if(r == OK) {
+               /* Assign u32 value. */
+               *value = m.DS_VAL;
+       }
 
        return r;
 }