Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54bb1d3b authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Fix grep -f."

parents 1a1c42fd 4014501d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -294,10 +294,8 @@ read_patterns(const char *fn)
		err(2, "%s", fn);
	line = NULL;
	len = 0;
#ifndef ANDROID
	while ((rlen = getline(&line, &len, f)) != -1)
		add_pattern(line, *line == '\n' ? 0 : (size_t)rlen);
#endif
	free(line);
	if (ferror(f))
		err(2, "%s", fn);