aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/nist_x509.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-07 12:25:09 +0000
committerlloyd <[email protected]>2014-01-07 12:25:09 +0000
commit14ea6e48d1ed916b2e36a16eb44862a89fb1fd3c (patch)
treed3463b3426c06196b684eea5c49d65fd81d951b4 /src/tests/nist_x509.cpp
parent83f69bcad312352b9d20fbfda183ddba62ed861e (diff)
Fix warnings
Diffstat (limited to 'src/tests/nist_x509.cpp')
-rw-r--r--src/tests/nist_x509.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/nist_x509.cpp b/src/tests/nist_x509.cpp
index 4f75c9f88..ce2a587f7 100644
--- a/src/tests/nist_x509.cpp
+++ b/src/tests/nist_x509.cpp
@@ -193,7 +193,7 @@ std::vector<std::string> dir_listing(const std::string& dir_name)
{
struct dirent* dir_ent = readdir(dir);
- if(dir_ent == 0)
+ if(!dir_ent)
break;
const std::string entry = dir_ent->d_name;
if(entry == "." || entry == "..")