From abcff5b7f125a9e0d203025207fae07e58c40d8f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Jun 2020 12:38:24 +0200 Subject: Cleanup: Fix uninitialised variables --- pugl/detail/x11.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pugl') diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index 6a580ce..987f55f 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -75,11 +75,11 @@ static bool puglInitXSync(PuglWorldInternals* impl) { #ifdef HAVE_XSYNC - int syncMajor; - int syncMinor; - int errorBase; - XSyncSystemCounter* counters; - int numCounters; + int syncMajor = 0; + int syncMinor = 0; + int errorBase = 0; + XSyncSystemCounter* counters = NULL; + int numCounters = 0; if (XSyncQueryExtension(impl->display, &impl->syncEventBase, &errorBase) && XSyncInitialize(impl->display, &syncMajor, &syncMinor) && -- cgit v1.2.1