[hipl-commit] [trunk] Rev 4737: hipd: fix another faulty initialization to zero.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 9 Jun 2010 14:54:35 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 09/06/2010 at 14:54:35
Revision: 4737
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: fix another faulty initialization to zero.

Modified:
  M  tools/pisacert.c

=== modified file 'tools/pisacert.c'
--- tools/pisacert.c    2010-05-17 22:14:29 +0000
+++ tools/pisacert.c    2010-06-09 11:54:05 +0000
@@ -66,8 +66,10 @@
                               struct in6_addr *hit, char *certificate,
                               size_t size)
 {
-    int err                        = 0;
-    struct hip_cert_spki_info cert = { 0 };
+    int err = 0;
+    struct hip_cert_spki_info cert;
+
+    memset(&cert, 0, sizeof(cert));
 
     HIP_IFEL(!not_before || !not_after || !hit || !certificate, -1,
              "NULL parameter found.\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 4737: hipd: fix another faulty initialization to zero. - Mircea Gherzan