Skip to content

Commit a944265

Browse files
dinikolopptorrestr
andauthored
Update libhdt/src/dictionary/FourSectionDictionary.cpp
Co-Authored-By: ptorrestr <pablo.torres.t@gmail.com>
1 parent c214c70 commit a944265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libhdt/src/dictionary/FourSectionDictionary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ FourSectionDictionary::FourSectionDictionary(HDTSpecification & spec) : blocksiz
6161
blockSizeStr = spec.get("dict.block.size");
6262
}catch(exception& e){}
6363

64-
if(blockSizeStr!=""){
64+
if(!blockSizeStr.empty() && (blockSizeStr.find_first_not_of("0123456789") == string::npos) && blockSizeStr != "0"){
6565
//blocksize = atoi((const char*)blockSizeStr.c_str());
6666
}
6767
}

0 commit comments

Comments
 (0)