]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxstore.c
Forgot to initialise ssh->portfwds to NULL. Unusually, this was
[PuTTY.git] / unix / uxstore.c
index c46b9a293e38efc42d82efa75a5572d2e25d84da..85d72ca75a96edca8ec9f39ae8c254b9cb485fdc 100644 (file)
@@ -85,6 +85,8 @@ static void make_filename(char *filename, int index, const char *subname)
     char *home;
     int len;
     home = getenv("HOME");
+    if (!home)
+        home="/";
     strncpy(filename, home, FILENAME_MAX);
     len = strlen(filename);
     if (index == INDEX_SESSION) {