diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-27 07:25:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-27 07:25:02 +0400 |
commit | c96f28a718b0c94b52781cc91d384d2aeedf8c02 (patch) | |
tree | d164435bb63ce61131d8689a3cbbdfda65a4c9c4 /source/blender/gpu/intern/gpu_codegen.c | |
parent | 69260601851bfcf1193b95950e37abf1d662b0a4 (diff) |
- use %u rather tham %d for unsigned ints in string formatting funcs.
- replace (strlen(str) == 0) with str[0]=='\0'
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index 470b99de00b..910576fa34e 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -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; |