[Cryptech-Commits] [sw/libhal] branch rpc updated: Increment return count, not pointer to return count. Feh, C.

git at cryptech.is git at cryptech.is
Wed May 18 13:29:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch rpc
in repository sw/libhal.

The following commit(s) were added to refs/heads/rpc by this push:
       new  818c143   Increment return count, not pointer to return count.  Feh, C.
818c143 is described below

commit 818c1434a93cde13e349a73bd617b0a98a51ad76
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Tue May 17 21:45:20 2016 -0400

    Increment return count, not pointer to return count.  Feh, C.
---
 ks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ks.c b/ks.c
index 15dcaf3..80cbda4 100644
--- a/ks.c
+++ b/ks.c
@@ -303,7 +303,7 @@ hal_error_t hal_ks_list(hal_pkey_info_t *result,
     result[*result_len].flags = db->keys[i].flags;
     result[*result_len].name_len = db->keys[i].name_len;
     memcpy(result[*result_len].name, db->keys[i].name, db->keys[i].name_len);
-    ++result_len;
+    ++ *result_len;
   }
 
   return HAL_OK;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list