From 84220b9aaf5e36c4a8ec347b7bdf325e62d7b00a Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 15 Dec 2017 12:11:30 +0000 Subject: [PATCH] Fix uninitialised data in rich resource text layout Refs #820 --- qrenderdoc/Code/QRDUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index 102c270ca..b69ac1d01 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -77,7 +77,7 @@ struct RichResourceText QString text; // the ideal width for the document - int idealWidth; + int idealWidth = 0; // cache the context once we've obtained it. ICaptureContext *ctxptr = NULL;