From 5868abe97babcc287794dcb36ad8e77989b6ddcf Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 21 Feb 2018 18:16:56 -0600 Subject: [PATCH] start-stop-daemon: compiler warning cleanup --- src/rc/start-stop-daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] == '!') {