summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-19 19:41:32 +0200
committerRay <[email protected]>2021-04-19 19:41:32 +0200
commit899afcbdcaa25ff856e698eaecaa9c4ec395159e (patch)
tree058034f837e175e373bb76bd1d7d40ee722931ba /src/core.c
parent581bd0eb020c730dd5f14fee7867629c1cd9c8c0 (diff)
downloadraylib-899afcbdcaa25ff856e698eaecaa9c4ec395159e.tar.gz
raylib-899afcbdcaa25ff856e698eaecaa9c4ec395159e.zip
Minor tweaks
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 3e9fcf8c..247a7932 100644
--- a/src/core.c
+++ b/src/core.c
@@ -513,7 +513,7 @@ extern void UnloadFontDefault(void); // [Module: text] Unloads default fo
static bool InitGraphicsDevice(int width, int height); // Initialize graphics device
static void SetupFramebuffer(int width, int height); // Setup main framebuffer
static void SetupViewport(int width, int height); // Set viewport for a provided width and height
-static void SwapBuffers(void); // Copy back buffer to front buffers
+static void SwapBuffers(void); // Copy back buffer to front buffer
static void InitTimer(void); // Initialize timer
static void Wait(float ms); // Wait for some milliseconds (stop program execution)
@@ -4517,7 +4517,7 @@ static void InitTimer(void)
#endif
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
- struct timespec now;
+ struct timespec now = { 0 };
if (clock_gettime(CLOCK_MONOTONIC, &now) == 0) // Success
{