aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-02-21 18:16:56 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-02-21 18:16:56 -0600
commit5868abe97babcc287794dcb36ad8e77989b6ddcf (patch)
tree41035388b3649cd879f9ae1bd7259c91bebe19c9 /src/rc
parent71aad16256604e0e9e146221957a9b00cfe67b99 (diff)
start-stop-daemon: compiler warning cleanup
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/start-stop-daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index 88b1e091..1b565829 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -616,7 +616,8 @@ int main(int argc, char **argv)
fp = fopen(exec_file, "r");
if (fp) {
line = NULL;
- getline(&line, &size, fp);
+ if (getline(&line, &size, fp) == -1)
+ eerrorx("%s: %s", applet, strerror(errno));
p = line;
fclose(fp);
if (p != NULL && line[0] == '#' && line[1] == '!') {