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;