From e6d22346f98e1ef18c898f13c02de7315a45bc32 Mon Sep 17 00:00:00 2001
From: Doug Binks <doug@enkisoftware.com>
Date: Sat, 8 Sep 2018 17:18:24 +0200
Subject: [PATCH] Fix copypaste error in glfwGetMonitorWorkarea

Related to #1322.
---
 src/monitor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/monitor.c b/src/monitor.c
index 869fdfb7..e8d6bcbe 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -341,8 +341,8 @@ GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* handle, int* xpos, int* ypos, i
         *ypos = 0;
     if (width)
         *width = 0;
-    if (width)
-        *width = 0;
+    if (height)
+        *height = 0;
 
     _GLFW_REQUIRE_INIT();