Commit Diff


commit - 8d725ae11ecc53e7d7f7bc3b576f7e949d08b980
commit + 8920fa0456335183a231225a79354b3fa592acb8
blob - de8bc60f38fc659fb3f8be68237fb22c0a25e9bc
blob + eb5fcb7a53932972a7d3230e79c09ecc1e5f0dab
--- got/got.c
+++ got/got.c
@@ -237,6 +237,8 @@ get_editor(char **abspath)
 {
 	const struct got_error *err = NULL;
 	const char *editor;
+
+	*abspath = NULL;
 
 	editor = getenv("VISUAL");
 	if (editor == NULL)