Not that simple. The REQUIRE macro is used before va_start, I had to
define another macro and goto label to get the job done.

  Fixed and committed to SVN.

Best,
Scuri


2018-01-16 23:38 GMT-02:00 Ranier VF <ranier_...@hotmail.com>:

> Hi,
> Issue found by Coverity Scan.
> CID 210616 (#1 of 1): Missing varargs init or cleanup (VARARGS)
>
> --- a\src\iup_scanf.c   Sun Jul 26 03:10:04 2015
> +++ b\src\iup_scanf.c   Tue Jan 16 23:38:37 2018
> @@ -175,9 +175,9 @@
>      }
>      ++fields_out_count;
>    }
> -  va_end(va);
>
>  cleanup:
> +  va_end(va);
>    if (s1) free(s1);
>    if (title) free(title);
>    if (width) free(width);
>
> Best.
> Ranier.
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to