- bugfixes and code cleanup found using cppcheck

This commit is contained in:
Mark Vejvoda
2012-03-28 06:25:57 +00:00
parent 7a099a51c3
commit 9286130138
25 changed files with 47 additions and 39 deletions

View File

@@ -136,7 +136,10 @@ string doubleToStr(double d,int precsion) {
}
bool IsNumeric(const char *p, bool allowNegative) {
if(p != NULL && strcmp(p,"-") == 0) {
if(p == NULL) {
return false;
}
if(strcmp(p,"-") == 0) {
return false;
}
int index = 0;