Commit Diff


commit - 1992b6cb3ff596207bc3efd3954cdcd13a9ab6b9
commit + 3b488fdeec85f8d497d8f35b86efc71f42c26342
blob - 15f5f70ed577e3817d906683deafd0bfa15d1b92
blob + bba6c3881d64774c3fccad8b40763d530931bbdf
--- libexec/got-read-patch/got-read-patch.c
+++ libexec/got-read-patch/got-read-patch.c
@@ -122,7 +122,7 @@ filename(const char *at, char **name)
 }
 
 static const struct got_error *
-find_patch(int *empty, FILE *fp)
+find_patch(int *done, FILE *fp)
 {
 	const struct got_error *err = NULL;
 	char	*old = NULL, *new = NULL;
@@ -163,7 +163,7 @@ find_patch(int *empty, FILE *fp)
 		 * line.
 		 */
 		if (rename && old != NULL && new != NULL) {
-			*empty = 1;
+			*done = 1;
 			err = send_patch(old, new, git);
 			break;
 		}