Philpep fix about possible leak in parser

This commit is contained in:
Martin Duquesnoy 2011-11-01 14:23:47 +01:00
parent c7e05fced8
commit e2e43fcf89

View File

@ -172,7 +172,7 @@ parse_keywords(const char *filename)
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);
return NULL;