conditions: use set_extra_expr_mod() to change extra states
[smatch.git] / validation / sm_wine_filehandles.c
blob2b6ee4459d529f471f36b5f17b8e622ec3fa2a0b
1 void * CreateFile();
2 void * socket();
4 int func (void)
6 int *x;
8 if (x = CreateFile()) {
12 x = socket();
13 if (x != 0) {
16 return;
19 * check-name: use INVALID_HANDLE_VALUE not zero
20 * check-command: smatch -p=wine sm_wine_filehandles.c
22 * check-output-start
23 sm_wine_filehandles.c:8 func() error: comparing a filehandle against zero 'x'
24 sm_wine_filehandles.c:13 func() error: comparing a filehandle against zero 'x'
25 * check-output-end