summaryrefslogtreecommitdiff
path: root/util/text.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-06-22 22:14:08 -0700
committerAaron <aaron@10gen.com>2010-06-22 22:14:08 -0700
commitc00c7d6d93e9408eb09dfe1a9a68e824f0a024f1 (patch)
treef739e9ee27da13011effc89fd669345e472c2ccb /util/text.h
parent05f319162bf867efc0480290c98f34287a4bb8e3 (diff)
downloadmongo-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.h1
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;