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

Commit 4014501d authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Fix grep -f.

bionic has getline now.

Change-Id: I5e4ee137768ab3113dbe8a07406fa39f4b6546af
parent 1a1c42fd
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);