mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
coverity: trying different model
Model reseting of given set, but it still makes FD_SET to think it's accessing uninitialized value. Maybe model also FD_SET.
This commit is contained in:
parent
83661c8f7f
commit
6167f5da10
@ -66,8 +66,9 @@ void *memccpy(void *dest, const void *src, int c, size_t n)
|
||||
void model_FD_ZERO(void *fdset)
|
||||
{
|
||||
unsigned i;
|
||||
for (i = 0; i < 1024 / 8 / sizeof(int); ++i)
|
||||
((int*)fdset)[i];
|
||||
|
||||
for (i = 0; i < 1024 / 8 / sizeof(long); ++i)
|
||||
((long*)fdset)[i] = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user