Skip to content
Snippets Groups Projects
Commit 6d463d36 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Cleanup

parent 95e282d5
Branches
No related tags found
No related merge requests found
...@@ -152,14 +152,12 @@ void _glfwInputError(int code, const char* format, ...) ...@@ -152,14 +152,12 @@ void _glfwInputError(int code, const char* format, ...)
if (format) if (format)
{ {
int count;
va_list vl; va_list vl;
va_start(vl, format); va_start(vl, format);
count = vsnprintf(description, sizeof(description), format, vl); vsnprintf(description, sizeof(description), format, vl);
va_end(vl); va_end(vl);
if (count < 0)
description[sizeof(description) - 1] = '\0'; description[sizeof(description) - 1] = '\0';
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment