diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-23 16:57:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-23 16:57:03 +0400 |
commit | d6d2f09dd9e4df0a3e1168b2fbd3dcf2f9bd8e27 (patch) | |
tree | 1a6e80812e585fbe4bfcf86e453fc0bf566e1b0e /source/blender/blenlib | |
parent | 7f56023e9bd95e8817556e0c6ae317434a1bee5a (diff) |
quiet some clang warnings & fix for bugs in exceptional cases.
- ghost C api, BLI_get_folder_version() could assign garbage values.
- pointcache ptcache_find_frames_around() had a superfluous NULL check which would have crashed anyway if actually NULL.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 73d6588b97f..1a47a93ab51 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1144,6 +1144,8 @@ char *BLI_get_folder_version(const int id, const int ver, const int do_check) ok= get_path_system(path, NULL, NULL, NULL, ver); break; default: + path[0]= '\0'; /* incase do_check is false */ + ok= FALSE; BLI_assert(!"incorrect ID"); } |