Fix couple of compiler warnings about uninitialized variables
This commit is contained in:
parent
4e062e35de
commit
dfaeda0492
2 changed files with 4 additions and 1 deletions
|
@ -718,6 +718,7 @@ static enum edit_key_code esc_seq_to_key(char *seq)
|
||||||
int param1 = -1, param2 = -1;
|
int param1 = -1, param2 = -1;
|
||||||
enum edit_key_code ret = EDIT_KEY_NONE;
|
enum edit_key_code ret = EDIT_KEY_NONE;
|
||||||
|
|
||||||
|
last = '\0';
|
||||||
for (pos = seq; *pos; pos++)
|
for (pos = seq; *pos; pos++)
|
||||||
last = *pos;
|
last = *pos;
|
||||||
|
|
||||||
|
|
|
@ -80,11 +80,13 @@ static struct wlantest_sta * rx_get_sta(struct wlantest *wt,
|
||||||
} else
|
} else
|
||||||
return NULL;
|
return NULL;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bss = bss_find(wt, bssid);
|
bss = bss_find(wt, bssid);
|
||||||
if (bss == NULL)
|
if (bss == NULL)
|
||||||
return 0;
|
return NULL;
|
||||||
return sta_find(bss, sta_addr);
|
return sta_find(bss, sta_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue