Corrected removal of bad serial prefs data

This commit is contained in:
nigel 2004-01-27 11:31:01 +00:00
parent a77b3c7204
commit 9cdba256f8

View File

@ -95,14 +95,14 @@ void LoadPrefs(void)
&& strcmp(str, "/dev/ttys0") == 0 )
{
puts("Deleting invalid prefs item 'seriala /dev/ttys0'");
PrefsRemoveItem("seriala");
PrefsRemoveItem("seriala", 1);
}
if ( (str = PrefsFindString("serialb") ) != NULL
&& strcmp(str, "/dev/ttys1") == 0 )
{
puts("Deleting invalid prefs item 'serialb /dev/ttys1'");
PrefsRemoveItem("serialb");
PrefsRemoveItem("serialb", 1);
}
}