All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peizhao Hu <peiworld@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: missing break statement when searching for section cmd
Date: Tue, 04 Jun 2013 10:58:17 +1000	[thread overview]
Message-ID: <51AD3BA9.30809@gmail.com> (raw)

[-- 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;

                 reply	other threads:[~2013-06-04  0:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51AD3BA9.30809@gmail.com \
    --to=peiworld@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.