cast to bool optimization

This commit is contained in:
Ianos Gnatiuc
2005-10-25 06:11:09 +00:00
parent f602e0d3e3
commit 97ffdeef9d
37 changed files with 71 additions and 70 deletions

View File

@@ -1435,7 +1435,7 @@ static bool read_config(const char *cfg, const char *argv_0) {
Addr zoneaddr;
Path buf;
bool found = (*cfg != NUL) ? true : false;
bool found = (*cfg != NUL);
if(not found) {
// Look for configfilename in the environment
const char *ptr = getenv("GOLDNODE");