Signed-off-by: Ola Olsson <ola.olsson@xxxxxxxxxxxxxx> --- bitrate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitrate.c b/bitrate.c index 4a026a4..974b49c 100644 --- a/bitrate.c +++ b/bitrate.c @@ -110,6 +110,9 @@ static int handle_bitrates(struct nl80211_state *state, S_GI, } parser_state = S_NONE; + if (argc == 0) + return 1; + for (i = 0; i < argc; i++) { char *end; double tmpd; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html