mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 20:03:58 +02:00
- bugfixes and code cleanup found using cppcheck
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user