about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-02-28 09:32:17 -0600
committerMarco Peereboom <marco@conformal.com>2012-02-28 09:32:25 -0600
commit1a4b5322ea7a42a3c6c5c18c82ebdba5e63d8d45 (patch)
tree453e13a475d2036717c329aa258e6a106f51c4a2
parent7b2c86f0a7e39738b7d368e9f4adaf5ef31599e3 (diff)
downloadxombrero-1a4b5322ea7a42a3c6c5c18c82ebdba5e63d8d45.tar.gz
forgot some {} when doing path surgery
-rw-r--r--xxxterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index c5f88fd..b11a572 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1133,7 +1133,7 @@ restore_sessions_list(void)
 
 	sdir = opendir(sessions_dir);
 	if (sdir) {
-		while ((dp = readdir(sdir)) != NULL)
+		while ((dp = readdir(sdir)) != NULL) {
 #if defined __MINGW32__
 			reg = 1; /* windows only has regular files */
 #else
@@ -1144,6 +1144,7 @@ restore_sessions_list(void)
 				s->name = g_strdup(dp->d_name);
 				TAILQ_INSERT_TAIL(&sessions, s, entry);
 			}
+		}
 		closedir(sdir);
 	}
 }