Commit Diff


commit - dfc23429a0b27fedcc5f71299f2083472df4dce7
commit + 9516e7cb563b98e29f9d23f65189f9e5b583c04c
blob - e30bb0b425d521c0d92f3f3300537958da8a6919
blob + 9b0995261ea8798950777d1f28e8879d221005b9
--- got/got.c
+++ got/got.c
@@ -3188,7 +3188,7 @@ show_change(unsigned char status, const char *path, FI
 		if (fseek(patch_file, 0L, SEEK_SET) == -1)
 			return got_error_from_errno("fseek");
 		printf(GOT_COMMIT_SEP_STR);
-		while ((linelen = getline(&line, &linesize, patch_file) != -1))
+		while ((linelen = getline(&line, &linesize, patch_file)) != -1)
 			printf("%s", line);
 		if (ferror(patch_file))
 			return got_error_from_errno("getline");