- use %u rather tham %d for unsigned ints in string formatting funcs.
- replace (strlen(str) == 0) with str[0]=='\0'
This commit is contained in:
@@ -291,7 +291,7 @@ static void gpu_parse_functions_string(GHash *hash, char *code)
|
||||
}
|
||||
}
|
||||
|
||||
if(strlen(function->name) == 0 || function->totparam == 0) {
|
||||
if(function->name[0] == '\0' || function->totparam == 0) {
|
||||
fprintf(stderr, "GPU functions parse error.\n");
|
||||
MEM_freeN(function);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user