Commit 228f6459 authored by Dan Winship's avatar Dan Winship

dns-manager: remove an incorrect and unnecessary line

gcc 4.8.0 has a new warning that triggers on

    static void
    compute_hash (NMDnsManager *self, guint8 buffer[HASH_LEN])
        memset (buffer, 0, sizeof (buffer));

because "sizeof (buffer)" is *not* HASH_LEN, it's sizeof(guint8*). The
memset() was not necessary anyway since the g_checksum_get_digest()
after it will always end up filling in buffer, so just remove it.
parent 16801435
......@@ -561,7 +561,6 @@ compute_hash (NMDnsManager *self, guint8 buffer[HASH_LEN])
nm_ip6_config_hash (NM_IP6_CONFIG (iter->data), sum, TRUE);
memset (buffer, 0, sizeof (buffer));
g_checksum_get_digest (sum, buffer, &len);
g_checksum_free (sum);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment