Commit Diff


commit - eb9cbcba6ce8028e674a2b2c59643163bb8e1213
commit + 7e60a21a63558830da7e7dd476e43e67af348216
blob - a5f1ec253f2c26c6a8bbd0a97fb2babfdf79ada7
blob + 249e82706e0bb5c75d2b45617c77c834d4bbfa83
--- fs.c
+++ fs.c
@@ -64,14 +64,6 @@ static void		 load_certs(void);
 
 static struct imsgev		*iev_ui;
 static FILE			*session;
-
-/*
- * Note: these are empty if ~/.telescope exists, use *_path_base
- * below.
- */
-static char	xdg_config_base[PATH_MAX];
-static char	xdg_data_base[PATH_MAX];
-static char	xdg_cache_base[PATH_MAX];
 
 /*
  * Where to store user data.  These are all equal to ~/.telescope if
@@ -626,8 +618,12 @@ mkdirs(const char *path, mode_t mode)
 static void
 xdg_init(void)
 {
-	char *home, old_path[PATH_MAX];
-	struct stat info;
+	char		 xdg_config_base[PATH_MAX];
+	char		 xdg_data_base[PATH_MAX];
+	char		 xdg_cache_base[PATH_MAX];
+	char		 old_path[PATH_MAX];
+	char		*home;
+	struct stat	 info;
 
 	/* old path */
 	if ((home = getenv("HOME")) == NULL)