gprolog-1.4.4 bug report

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gprolog-1.4.4 bug report

David Binderman
Hello there,

terminal.c:308:14: warning: variable 'q' is uninitialized when used here [-Wuninitialized]

Source code is

          while(*p && isprint(*p) && !isspace(*p))
            *q++ = *p++;

Suggest initialise q before first use.

Regards

David Binderman

     
_______________________________________________
Bug-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-prolog
Reply | Threaded
Open this post in threaded view
|

Re: gprolog-1.4.4 bug report

Daniel Diaz-3
Thank you for the bug report.
In fact it was already fixed in the current git version.

Daniel

Le 12/05/2014 18:16, David Binderman a écrit :

> Hello there,
>
> terminal.c:308:14: warning: variable 'q' is uninitialized when used here [-Wuninitialized]
>
> Source code is
>
>            while(*p && isprint(*p) && !isspace(*p))
>              *q++ = *p++;
>
> Suggest initialise q before first use.
>
> Regards
>
> David Binderman
>
>  


--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.


_______________________________________________
Bug-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-prolog