[hipl-commit] [trunk] Rev 4728: hipd: replace a faulty initializer with memset.

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

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 09/06/2010 at 02:20:49
Revision: 4728
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  hipd: replace a faulty initializer with memset.

Modified:
  M  hipd/hipd.c

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-06-08 23:18:38 +0000
+++ hipd/hipd.c 2010-06-08 23:20:28 +0000
@@ -254,7 +254,9 @@
     int highest_descriptor = 0, err = 0;
     struct timeval timeout;
     fd_set read_fdset;
-    struct hip_packet_context ctx = {0};
+    struct hip_packet_context ctx;
+
+    memset(&ctx, 0, sizeof(ctx));
 
 #ifdef CONFIG_HIP_PERFORMANCE
     HIP_DEBUG("Creating perf set\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 4728: hipd: replace a faulty initializer with memset. - Mircea Gherzan