Commit c3c4f3b7 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

fix segfault in parse_device()

parent c299cd3a
...@@ -278,7 +278,7 @@ old: ...@@ -278,7 +278,7 @@ old:
/* for older versions */ /* for older versions */
file = fopen("/proc/mounts", "r"); file = fopen("/proc/mounts", "r");
if (!file) if (!file)
goto out; return;
while (getline(&buf, &len, file) > 0) { while (getline(&buf, &len, file) > 0) {
ptr = buf; ptr = buf;
strsep(&ptr, " "); strsep(&ptr, " ");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment