std.cfg: Improved tests for setbuf().
This commit is contained in:
parent
fa351e010b
commit
561e21e2aa
|
@ -3112,12 +3112,20 @@ void uninitvar_vwscanf(void)
|
|||
(void)vwscanf(format,arg);
|
||||
}
|
||||
|
||||
void nullPointer_setbuf(FILE *stream, char *buf)
|
||||
{
|
||||
// cppcheck-suppress nullPointer
|
||||
setbuf(NULL,buf);
|
||||
setbuf(stream,NULL);
|
||||
setbuf(stream,buf);
|
||||
}
|
||||
|
||||
void uninitvar_setbuf(void)
|
||||
{
|
||||
FILE *stream;
|
||||
char *buf;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)setbuf(stream,buf);
|
||||
setbuf(stream,buf);
|
||||
}
|
||||
|
||||
void uninitvar_setvbuf(void)
|
||||
|
|
Loading…
Reference in New Issue