2
0
Camilla Löwy 8 жил өмнө
parent
commit
6d463d36fa
1 өөрчлөгдсөн 2 нэмэгдсэн , 4 устгасан
  1. 2 4
      src/init.c

+ 2 - 4
src/init.c

@@ -152,15 +152,13 @@ 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
         strcpy(description, getErrorString(code));
         strcpy(description, getErrorString(code));