[GRASS-dev] [GRASS GIS] #1326: DebCheck QA: fflush() called on input stream "stdin" may result in undefined behaviour

#1326: DebCheck QA: fflush() called on input stream "stdin" may result in
undefined behaviour
--------------------------------+-------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: Compiling | Version: 6.4.0
Keywords: lib/edit, lib/vask | Platform: Linux
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
(see #1311)

  * ./lib/edit/edit_cellhd.c:558 [error] - fflush() called on input stream
"stdin" may result in undefined behaviour
  * ./lib/vask/V_exit.c:57 [error] - fflush() called on input stream
"stdin" may result in undefined behaviour

thanks,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1326&gt;
GRASS GIS <http://grass.osgeo.org>

#1326: DebCheck QA: fflush() called on input stream "stdin" may result in
undefined behaviour
--------------------------------+-------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Compiling | Version: 6.4.0
Keywords: lib/edit, lib/vask | Platform: Linux
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
Changes (by hamish):

  * milestone: 6.4.2 => 6.4.3

Comment:

{{{
  fflush(stdin);
}}}
    ->
{{{
  #include <stdio.h>
  scanf("%*[^\n]%*c");
}}}

?,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1326#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>