-make gcc happy
authorChristian Grothoff <christian@grothoff.org>
Tue, 28 Feb 2012 18:53:39 +0000 (18:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 28 Feb 2012 18:53:39 +0000 (18:53 +0000)
src/dns/gnunet-service-dns.c
src/vpn/gnunet-service-vpn.c

index 1f48b105a30796ff5b65bb2934ad94b59a352398..37d2fbca8a57d13fb95f2055904d9fd2d8a92f3c 100644 (file)
@@ -1268,6 +1268,7 @@ process_helper_messages (void *cls GNUNET_UNUSED, void *client,
   {
   case ETH_P_IPV4:
     ip4 = (const struct GNUNET_TUN_IPv4Header *) &tun[1];
+    ip6 = NULL; /* make compiler happy */
     if ( (msize < sizeof (struct GNUNET_TUN_IPv4Header)) ||
         (ip4->version != 4) ||
         (ip4->header_length != sizeof (struct GNUNET_TUN_IPv4Header) / 4) ||
@@ -1283,6 +1284,7 @@ process_helper_messages (void *cls GNUNET_UNUSED, void *client,
     msize -= sizeof (struct GNUNET_TUN_IPv4Header);
     break;
   case ETH_P_IPV6:
+    ip4 = NULL; /* make compiler happy */
     ip6 = (const struct GNUNET_TUN_IPv6Header *) &tun[1];
     if ( (msize < sizeof (struct GNUNET_TUN_IPv6Header)) ||
         (ip6->version != 6) ||
index 26deeee25a33499d77dbc9bc2dd94b367f3017cf..5290ad69e7bb8d36af8d2c5af247b7a181b67554 100644 (file)
@@ -894,6 +894,8 @@ route_packet (struct DestinationEntry *destination,
        GNUNET_break (0);
        return;
       }
+      tcp = NULL; /* make compiler happy */
+      icmp = NULL;  /* make compiler happy */
       udp = payload;
       if (udp->len < sizeof (struct GNUNET_TUN_UdpHeader))
       {
@@ -919,6 +921,8 @@ route_packet (struct DestinationEntry *destination,
        GNUNET_break (0);
        return;
       }      
+      udp = NULL; /* make compiler happy */
+      icmp = NULL;  /* make compiler happy */
       tcp = payload;
       if (tcp->off * 4 < sizeof (struct GNUNET_TUN_TcpHeader))
       {
@@ -950,6 +954,8 @@ route_packet (struct DestinationEntry *destination,
        GNUNET_break (0);
        return;
       }
+      tcp = NULL; /* make compiler happy */
+      udp = NULL;  /* make compiler happy */
       icmp = payload;
       source_port = 0;
       destination_port = 0;