Opened 14 years ago

Last modified 8 years ago

#1326 new defect

DebCheck QA: fflush() called on input stream "stdin" may result in undefined behaviour

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: Compiling Version: 6.4.0
Keywords: lib/edit, lib/vask Cc:
CPU: Unspecified Platform: Linux

Description

(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

Change History (2)

comment:1 by hamish, 11 years ago

Milestone: 6.4.26.4.3
 fflush(stdin);

->

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

?, Hamish

comment:2 by neteler, 8 years ago

Milestone: 6.4.36.4.6
Note: See TracTickets for help on using tickets.