Fix: move va_end to outermost label
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 19 Nov 2013 02:16:06 +0000 (21:16 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 19 Nov 2013 02:16:06 +0000 (21:16 -0500)
Coverity:

** CID 1021237:  Missing varargs init or cleanup  (VARARGS)
/snprintf/vfprintf.c: 955 in ust_safe_vfprintf()

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
snprintf/vfprintf.c

index cedd4fb7eb9e408c498b3ba901cd4180ef0d4569..896a8840e5470321c1bc1ac00236dfd0cb0f699d 100644 (file)
@@ -934,7 +934,6 @@ number:                     if ((dprec = prec) >= 0)
 done:
        FLUSH();
 error:
-       va_end(orgap);
        if (__sferror(fp))
                ret = -1;
        goto finish;
@@ -944,6 +943,7 @@ overflow:
        ret = -1;
 
 finish:
+       va_end(orgap);
 #ifdef FLOATING_POINT
        if (dtoaresult)
                __freedtoa(dtoaresult);
This page took 0.0264529999999999 seconds and 4 git commands to generate.