summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-02-28 14:43:10 +0000
committerNick White <git@njw.name>2022-02-28 14:43:10 +0000
commit54aca8994863f5c58bce0224bc943b81c60f5d04 (patch)
treeaa28072dd4d910e60416d10f6311bfa547c215d2 /cmd
parenta2a8d9780a19d592ff37d20eb36b5a31814e34fd (diff)
bookpipeline: ensure context is initialised before using it, to avoid panic
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bookpipeline/main.go1
1 files changed, 1 insertions, 0 deletions
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 {