]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix couple of compiler warnings about uninitialized variables
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 26 Jan 2011 19:29:28 +0000 (21:29 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 26 Jan 2011 19:29:28 +0000 (21:29 +0200)
src/utils/edit.c
wlantest/process.c

index 8dcfb685cd98bf7e8fd185495c08cd15945c7748..8f9e4ede8660be284928c84203ef26423d138589 100644 (file)
@@ -718,6 +718,7 @@ static enum edit_key_code esc_seq_to_key(char *seq)
        int param1 = -1, param2 = -1;
        enum edit_key_code ret = EDIT_KEY_NONE;
 
+       last = '\0';
        for (pos = seq; *pos; pos++)
                last = *pos;
 
index 974529c70ec04f7da51aaf5fe42a976a0579fd69..a4dd87d8305b2e9561b806163cee17087e7f7789 100644 (file)
@@ -80,11 +80,13 @@ static struct wlantest_sta * rx_get_sta(struct wlantest *wt,
                } else
                        return NULL;
                break;
+       default:
+               return NULL;
        }
 
        bss = bss_find(wt, bssid);
        if (bss == NULL)
-               return 0;
+               return NULL;
        return sta_find(bss, sta_addr);
 }