Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43c10205 authored by Andreas Gampe's avatar Andreas Gampe Committed by Gerrit Code Review
Browse files

Conn_init: Fix unused variable

Bug: 18632512
Change-Id: I42e0169f762f30f7486170430eb1e472cfe620d8
parent e1eed5dc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ static int wifi_check_qcom_cfg_files()
{
    char macAddress[13];
    char hex[7];
    memset(macAddress, 0, 13);
    memset(macAddress, 0, sizeof(macAddress));
    memset(hex, 0, 7);

    // Read MAC String
@@ -40,6 +40,10 @@ static int wifi_check_qcom_cfg_files()
    {
        n = fread(macAddress, 12, 1, fp);
        fclose(fp);
        if (n == 0) {
            // Buffer may be partially written. Reset.
            memset(macAddress, 0, sizeof(macAddress));
        }

        // Write MAC String
        wfc_util_atoh( macAddress, 12, (unsigned char *)hex, 6);