mirror of https://github.com/cy384/ssheven.git
fix bug where prefs version mismatch fails to init hostname etc.
This commit is contained in:
parent
252bebd10a
commit
41452a537c
|
@ -237,6 +237,10 @@ void load_prefs(void)
|
||||||
prefs.pubkey_path[0] = '\0';
|
prefs.pubkey_path[0] = '\0';
|
||||||
prefs.privkey_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 = FSRead(prefRefNum, &buffer_size, buffer);
|
||||||
e = FSClose(prefRefNum);
|
e = FSClose(prefRefNum);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue