summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-06-29 18:08:07 -0400
committerMathias Stearn <mathias@10gen.com>2010-06-29 20:07:09 -0400
commit0e5ed0a83e43d64cfb77af7e0de91e871e989da0 (patch)
tree49b937b85126e6740da5c2160cbf7ccbbc91ef19 /tools
parenta95c55925c807aa43aa8013a08bc7408bb96a562 (diff)
downloadmongo-0e5ed0a83e43d64cfb77af7e0de91e871e989da0.tar.gz
more strlen(x) == 0 smashing
Diffstat (limited to 'tools')
-rw-r--r--tools/tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tool.cpp b/tools/tool.cpp
index e6ef7bb564d..c56bcf64f8c 100644
--- a/tools/tool.cpp
+++ b/tools/tool.cpp
@@ -282,7 +282,7 @@ namespace mongo {
file.getline( line , BUF_SIZE );
const char * cur = line;
while ( isspace( cur[0] ) ) cur++;
- if ( strlen( cur ) == 0 )
+ if ( cur[0] == '\0' )
continue;
_fields.push_back( cur );