aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-07 12:38:24 +0200
committerDavid Robillard <d@drobilla.net>2020-06-13 17:18:22 +0200
commitabcff5b7f125a9e0d203025207fae07e58c40d8f (patch)
treef38a8c9c5dce388055582f1f995b605463d11d71 /pugl
parentf036af07f7eb8ccb14fc3c4389f509367b9a3802 (diff)
downloadpugl-abcff5b7f125a9e0d203025207fae07e58c40d8f.tar.gz
pugl-abcff5b7f125a9e0d203025207fae07e58c40d8f.tar.bz2
pugl-abcff5b7f125a9e0d203025207fae07e58c40d8f.zip
Cleanup: Fix uninitialised variables
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/x11.c10
1 files changed, 5 insertions, 5 deletions
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) &&