From a73d02baae80cbceadba676089f2969b87ea870e Mon Sep 17 00:00:00 2001
From: Thomas Jahns <jahns@dkrz.de>
Date: Tue, 5 Dec 2023 14:08:40 +0100
Subject: [PATCH] Fix missing initialization.

* This fixes a bug introduced in b1c602b52242a that manifests most
  typically in optimized binaries.
---
 src/vlist.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/vlist.c b/src/vlist.c
index 77cd51b68..5908dbbc8 100644
--- a/src/vlist.c
+++ b/src/vlist.c
@@ -465,6 +465,8 @@ vlist_generate_zaxis(int vlistID, int zaxistype, int nlevels, const double *leve
       query.zaxistype = zaxistype;
       query.nlevels = nlevels;
       query.levels = levels;
+      query.lbounds = lbounds;
+      query.ubounds = ubounds;
 
       if ((zaxisglobdefined = (cdiResHFilterApply(getZaxisOps(), vgzZAxisSearch, &query) == CDI_APPLY_STOP)))
         zaxisID = query.resIDValue;
-- 
GitLab