fix uninitialized 'editor' variable; found by Hiltjo Posthuma
diff --git a/got/got.c b/got/got.c
index de8bc60..eb5fcb7 100644
--- a/got/got.c
+++ b/got/got.c
@@ -238,6 +238,8 @@ get_editor(char **abspath)
const struct got_error *err = NULL;
const char *editor;
+ *abspath = NULL;
+
editor = getenv("VISUAL");
if (editor == NULL)
editor = getenv("EDITOR");