about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-01-24 13:08:54 -0600
committerMarco Peereboom <marco@conformal.com>2012-01-24 13:08:54 -0600
commitc6b1fdd3b85dc1f0651fea80a4a23fe438b95267 (patch)
tree27915e8fec2dc39ccfd34b60ad3167bc75561d66 /xxxterm.c
parent53791ad7304e17ca19bf51575a2c57ab1042646b (diff)
downloadxombrero-c6b1fdd3b85dc1f0651fea80a4a23fe438b95267.tar.gz
windows can edn up with dp == NULL
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 877fbfc..c2818b9 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1132,7 +1132,7 @@ restore_sessions_list(void)
 #else
 			reg = dp->d_type == DT_REG;
 #endif
-			if (reg) {
+			if (dp && reg) {
 				s = g_malloc(sizeof(struct session));
 				s->name = g_strdup(dp->d_name);
 				TAILQ_INSERT_TAIL(&sessions, s, entry);