- 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:
2011-08-27 03:25:02 +00:00
parent 6926060185
commit c96f28a718
15 changed files with 71 additions and 71 deletions

View File

@@ -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;