Browse Source

Only variable declarations at top of block

Aaron Marcher 7 years ago
parent
commit
666f285201
1 changed files with 2 additions and 1 deletions
  1. 2 1
      slstatus.c

+ 2 - 1
slstatus.c

@@ -53,9 +53,10 @@ main(int argc, char *argv[])
 	struct sigaction act;
 	struct sigaction act;
 	struct timespec start, current, diff, intspec, wait;
 	struct timespec start, current, diff, intspec, wait;
 	size_t i, len;
 	size_t i, len;
-	int sflag = 0;
+	int sflag;
 	char status[MAXLEN];
 	char status[MAXLEN];
 
 
+	sflag = 0;
 	ARGBEGIN {
 	ARGBEGIN {
 		case 's':
 		case 's':
 			sflag = 1;
 			sflag = 1;