add missing break statements
authorFelix Fietkau <nbd@openwrt.org>
Sat, 19 Jan 2008 22:10:15 +0000 (23:10 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 19 Jan 2008 22:10:15 +0000 (23:10 +0100)
.parse.c.swp [new file with mode: 0644]
parse.c

diff --git a/.parse.c.swp b/.parse.c.swp
new file mode 100644 (file)
index 0000000..eb777c1
Binary files /dev/null and b/.parse.c.swp differ
diff --git a/parse.c b/parse.c
index a0a3ec83d36a8ac553903e819b0ba33dfac93d61..9dd7126f3325a01a361174f492590ff07725a0af 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -163,12 +163,16 @@ static char *next_arg(struct uci_context *ctx, char **str, bool required)
        switch (**str) {
                case '"':
                        val = parse_double_quote(str);
+                       break;
                case '\'':
                        val = parse_single_quote(str);
+                       break;
                case 0:
                        val = NULL;
+                       break;
                default:
                        val = parse_unquoted(str);
+                       break;
        }
 
        if (required && !val) {