start-stop-daemon: compiler warning cleanup

This commit is contained in:
William Hubbs 2018-02-21 18:16:56 -06:00
parent 71aad16256
commit 5868abe97b

View File

@ -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] == '!') {