Cleanup: apply `include-what-you-use` guideline for `mbstate_t`
[lttng-ust.git] / snprintf / vfprintf.c
index cedd4fb7eb9e408c498b3ba901cd4180ef0d4569..4ac63c3c9238dfa188164076d5e9037cfd3c3734 100644 (file)
@@ -51,6 +51,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <wchar.h>
 
 #include "local.h"
 #include "fvwrite.h"
@@ -934,7 +935,6 @@ number:                     if ((dprec = prec) >= 0)
 done:
        FLUSH();
 error:
-       va_end(orgap);
        if (__sferror(fp))
                ret = -1;
        goto finish;
@@ -944,6 +944,7 @@ overflow:
        ret = -1;
 
 finish:
+       va_end(orgap);
 #ifdef FLOATING_POINT
        if (dtoaresult)
                __freedtoa(dtoaresult);
This page took 0.024768 seconds and 4 git commands to generate.