summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-03-30 11:01:11 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-03-30 11:01:11 +0000
commit791ada572b5c91b17b1b3c71af48c6bf9b1ca111 (patch)
tree06b4c57a8679f47dc135db509791ed85213f817a /Src
parentfbc51c9ea7c9350c28c6fa3d8c88576ab0e8d226 (diff)
downloadzsh-791ada572b5c91b17b1b3c71af48c6bf9b1ca111.tar.gz
zsh-791ada572b5c91b17b1b3c71af48c6bf9b1ca111.tar.xz
zsh-791ada572b5c91b17b1b3c71af48c6bf9b1ca111.zip
add some braces to avoid compiler warnings
Diffstat (limited to 'Src')
-rw-r--r--Src/init.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/Src/init.c b/Src/init.c
index 1212a48d9..6f14943e1 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -341,12 +341,13 @@ parseopts(char *nam, char ***argvp)
 		if (!(optno = optlookup(*argv))) {
 		    WARN_OPTION("no such option: %s", *argv);
 		    LAST_OPTION(1);
-		} else if (optno == RESTRICTED && !nam)
+		} else if (optno == RESTRICTED && !nam) {
 		    restricted = action;
-		else if ((optno == EMACSMODE || optno == VIMODE) && nam)
+		} else if ((optno == EMACSMODE || optno == VIMODE) && nam) {
 		    WARN_OPTION("can't change option: %s", *argv);
-		else if (dosetopt(optno, action, !nam) && nam)
+		} else if (dosetopt(optno, action, !nam) && nam) {
 		    WARN_OPTION("can't change option: %s", *argv);
+		}
               break;
 	    } else if (isspace(STOUC(**argv))) {
 		/* zsh's typtab not yet set, have to use ctype */
@@ -361,12 +362,13 @@ parseopts(char *nam, char ***argvp)
 	    	if (!(optno = optlookupc(**argv))) {
 		    WARN_OPTION("bad option: -%c", **argv);
 		    LAST_OPTION(1);
-		} else if (optno == RESTRICTED && !nam)
+		} else if (optno == RESTRICTED && !nam) {
 		    restricted = action;
-		else if ((optno == EMACSMODE || optno == VIMODE) && nam)
+		} else if ((optno == EMACSMODE || optno == VIMODE) && nam) {
 		    WARN_OPTION("can't change option: %s", *argv);
-		else if (dosetopt(optno, action, !nam) && nam)
+		} else if (dosetopt(optno, action, !nam) && nam) {
 		    WARN_OPTION("can't change option: -%c", **argv);
+		}
 	    }
 	}
 	argv++;
@@ -383,7 +385,7 @@ parseopts(char *nam, char ***argvp)
     *argvp = argv;
     return cmd;
 }
-
+    
 /**/
 static void
 printhelp(void)