This commit is contained in:
jl777
2018-04-12 21:09:23 +03:00
parent e0196ded31
commit f0a71becef

View File

@@ -13,11 +13,13 @@
#include <string.h>
#include "univalue.h"
#include <stdio.h>
namespace
{
static bool ParsePrechecks(const std::string& str)
{
fprintf(stderr,"Parse.(%s)\n",str.c_str());
if (str.empty()) // No empty string allowed
return false;
if (str.size() >= 1 && (json_isspace(str[0]) || json_isspace(str[str.size()-1]))) // No padding allowed