From 6d463d36fade96c1a455a6a1549b49f31d6527af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 2 Oct 2017 17:31:39 +0200 Subject: [PATCH] Cleanup --- src/init.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/init.c b/src/init.c index 7d3678fa..19a13e0d 100644 --- a/src/init.c +++ b/src/init.c @@ -152,15 +152,13 @@ void _glfwInputError(int code, const char* format, ...) if (format) { - int count; va_list vl; va_start(vl, format); - count = vsnprintf(description, sizeof(description), format, vl); + vsnprintf(description, sizeof(description), format, vl); va_end(vl); - if (count < 0) - description[sizeof(description) - 1] = '\0'; + description[sizeof(description) - 1] = '\0'; } else strcpy(description, getErrorString(code));