mountd: Fix fgets check.
authorRosen Penev <rosenp@gmail.com>
Sun, 18 Dec 2016 00:09:24 +0000 (16:09 -0800)
committerJohn Crispin <john@phrozen.org>
Mon, 19 Dec 2016 07:31:49 +0000 (08:31 +0100)
commitbc4a6dda94adf7c2a8f4274dd5b38a13e5c2c18b
treeb60ac70ff7f4a05fa2cb109c87c8232abb0377de
parent3dd115bb4046521986abe78bc488dfd6b95e5a6e
mountd: Fix fgets check.

fgets returns NULL on failure and a pointer otherwise. While comparing
it normally does not cause problems, comparing a pointer like this
is still undefined behavior.

Signed-off by: Rosen Penev <rosenp@gmail.com>
mount.c