mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +00:00
fstab parsing ignores comment lines
This commit is contained in:
parent
52ad76b49e
commit
52e18c5874
@ -146,7 +146,7 @@ void SysAddDiskPrefs(void)
|
|||||||
while(fgets(line, 255, f)) {
|
while(fgets(line, 255, f)) {
|
||||||
// Read line
|
// Read line
|
||||||
int len = strlen(line);
|
int len = strlen(line);
|
||||||
if (len == 0)
|
if (len == 0 || line[0] == '#')
|
||||||
continue;
|
continue;
|
||||||
line[len-1] = 0;
|
line[len-1] = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user