mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Fixing a careless mistake in ldb
Summary: negation of the condition checked currently had to be checkd actually Test Plan: make ldb; python ldb_test.py Reviewers: sheki, dhruba Reviewed By: sheki Differential Revision: https://reviews.facebook.net/D9459
This commit is contained in:
parent
a78fb5e8bc
commit
f04cc368f7
|
@ -99,7 +99,7 @@ public:
|
|||
|
||||
static string HexToString(const string& str) {
|
||||
string parsed;
|
||||
if (str[0] == '0' && str[1] == 'x') {
|
||||
if (str[0] != '0' || str[1] != 'x') {
|
||||
fprintf(stderr, "Invalid hex input %s. Must start with 0x\n",
|
||||
str.c_str());
|
||||
throw "Invalid hex input";
|
||||
|
|
Loading…
Reference in a new issue