Index: uspace/app/bdsh/cmds/modules/touch/touch.c
===================================================================
--- uspace/app/bdsh/cmds/modules/touch/touch.c	(revision f3d47c976431122cd3b0844f80937c7fdb899b40)
+++ uspace/app/bdsh/cmds/modules/touch/touch.c	(revision 948222e45b757067cc0c8605fb69b04c5ba6f5a8)
@@ -88,5 +88,10 @@
 	DIR *dirp;
 
-	for (c = 0, optreset = 1, optind = 0, longind = 0; c != -1; ) {
+	c = 0;
+	optreset = 1;
+	optind = 0;
+	longind = 0;
+
+	while (c != -1) {
 		c = getopt_long(argc, argv, "c", long_options, &longind);
 		switch (c) {
