* mount.cc (from_fstab): Fix potentially fatal typo.

This commit is contained in:
Corinna Vinschen 2010-08-13 19:10:22 +00:00
parent a016fed8ba
commit 5578c33733
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-08-13 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (from_fstab): Fix potentially fatal typo.
2010-08-11 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (do_mount): Don't treat "bind" mount as remote mount.

View File

@ -130,7 +130,7 @@ from_fstab (bool user)
while (fgets (buf, 65536, fh))
{
char *c = strrchr (buf, '\n');
if (*c)
if (c)
*c = '\0';
if (from_fstab_line (m, buf, user))
++m;