diff options
author | Aaron <aaron@10gen.com> | 2010-06-22 22:14:08 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-06-22 22:14:08 -0700 |
commit | c00c7d6d93e9408eb09dfe1a9a68e824f0a024f1 (patch) | |
tree | f739e9ee27da13011effc89fd669345e472c2ccb /util/text.h | |
parent | 05f319162bf867efc0480290c98f34287a4bb8e3 (diff) | |
download | mongo-c00c7d6d93e9408eb09dfe1a9a68e824f0a024f1.tar.gz |
SERVER-776 account for null string parsing difference in osx/linux
Diffstat (limited to 'util/text.h')
-rw-r--r-- | util/text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/text.h b/util/text.h index 1770c7d9592..e061f5a98e6 100644 --- a/util/text.h +++ b/util/text.h @@ -118,6 +118,7 @@ namespace mongo { // NOTE win version hasn't been tested directly inline long long parseLL( const char *n ) { long long ret; + uassert( 13307, "cannot convert empty string to long long", *n != 0 ); #if !defined(_WIN32) char *endPtr = 0; errno = 0; |