From fb0fb0380b9cb9c50470361d2d41e093dde4cca7 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 18 Sep 2009 01:21:12 +0000 Subject: [PATCH] Fix getline return value check. --- sudoreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sudoreplay.c b/sudoreplay.c index dc3e3a8b3..5eaf70597 100644 --- a/sudoreplay.c +++ b/sudoreplay.c @@ -585,7 +585,7 @@ list_session_dir(pathbuf, re, user, tty) */ if (getline(&buf, &bufsize, fp) == -1 || getline(&cwd, &cwdsize, fp) == -1 || - getline(&cmd, &cmdsize, fp)) { + getline(&cmd, &cmdsize, fp) == -1) { fclose(fp); continue; } -- 2.40.0