From 54aca8994863f5c58bce0224bc943b81c60f5d04 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 28 Feb 2022 14:43:10 +0000 Subject: bookpipeline: ensure context is initialised before using it, to avoid panic --- cmd/bookpipeline/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index ad1c171..11c5a41 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -120,6 +120,7 @@ func main() { ocredPattern := regexp.MustCompile(`.hocr$`) var ctx context.Context + ctx = context.Background() var conn Pipeliner switch *conntype { -- cgit v1.2.1-24-ge1ad