* missing break statement when searching for section cmd
@ 2013-06-04 0:58 Peizhao Hu
0 siblings, 0 replies; only message in thread
From: Peizhao Hu @ 2013-06-04 0:58 UTC (permalink / raw)
To: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 24 bytes --]
--
regards;
Peizhao
[-- Attachment #2: iw.patch --]
[-- Type: text/x-patch, Size: 441 bytes --]
diff --git a/iw.c b/iw.c
index dc99566..4051a18 100644
--- a/iw.c
+++ b/iw.c
@@ -359,8 +359,10 @@ static int __handle_cmd(struct nl80211_state *state, enum id_input idby,
/* ok ... bit of a hack for the dupe 'info' section */
if (match && sectcmd->idby != command_idby)
continue;
- if (strcmp(sectcmd->name, section) == 0)
+ if (strcmp(sectcmd->name, section) == 0){
match = sectcmd;
+ break;
+ }
}
sectcmd = match;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-04 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 0:58 missing break statement when searching for section cmd Peizhao Hu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).