File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ static PyObject* Rules_match(
1337
1337
char * filepath = NULL ;
1338
1338
char * data = NULL ;
1339
1339
1340
- int pid = 0 ;
1340
+ unsigned int pid = UINT_MAX ;
1341
1341
int timeout = 0 ;
1342
1342
int length ;
1343
1343
int error = ERROR_SUCCESS ;
@@ -1358,7 +1358,7 @@ static PyObject* Rules_match(
1358
1358
if (PyArg_ParseTupleAndKeywords (
1359
1359
args ,
1360
1360
keywords ,
1361
- "|sis #OOOiOO" ,
1361
+ "|sIs #OOOiOO" ,
1362
1362
kwlist ,
1363
1363
& filepath ,
1364
1364
& pid ,
@@ -1371,7 +1371,7 @@ static PyObject* Rules_match(
1371
1371
& callback_data .modules_data ,
1372
1372
& callback_data .modules_callback ))
1373
1373
{
1374
- if (filepath == NULL && data == NULL && pid == 0 )
1374
+ if (filepath == NULL && data == NULL && pid == UINT_MAX )
1375
1375
{
1376
1376
return PyErr_Format (
1377
1377
PyExc_TypeError ,
@@ -1465,7 +1465,7 @@ static PyObject* Rules_match(
1465
1465
1466
1466
Py_END_ALLOW_THREADS
1467
1467
}
1468
- else if (pid != 0 )
1468
+ else if (pid != UINT_MAX )
1469
1469
{
1470
1470
callback_data .matches = PyList_New (0 );
1471
1471
You can’t perform that action at this time.
0 commit comments