fix error return in got_path_find_prog() (patch by Steven McDonald)
diff --git a/lib/path.c b/lib/path.c
index be17963..fefe29c 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -448,7 +448,7 @@ got_path_find_prog(char **filename, const char *prog)
continue;
}
free(path);
- return NULL;
+ return err;
}
const struct got_error *