Philpep fix about possible leak in parser
This commit is contained in:
parent
c7e05fced8
commit
e2e43fcf89
@ -172,7 +172,7 @@ parse_keywords(const char *filename)
|
|||||||
bool error = false;
|
bool error = false;
|
||||||
|
|
||||||
|
|
||||||
if((fd = open(filename, O_RDONLY)) == -1 || stat(filename, &st) == -1)
|
if(stat(filename, &st) == -1 || (fd = open(filename, O_RDONLY)) == -1)
|
||||||
{
|
{
|
||||||
warn("%s", filename);
|
warn("%s", filename);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user