fix bug where prefs version mismatch fails to init hostname etc.

This commit is contained in:
cy384 2022-03-20 10:15:07 -04:00
parent 252bebd10a
commit 41452a537c
1 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,10 @@ void load_prefs(void)
prefs.pubkey_path[0] = '\0';
prefs.privkey_path[0] = '\0';
prefs.hostname[0] = 0;
prefs.username[0] = 0;
prefs.port[0] = 0;
e = FSRead(prefRefNum, &buffer_size, buffer);
e = FSClose(prefRefNum);