quiet some clang warnings & fix for bugs in exceptional cases.
[blender.git] / source / blender / blenlib / intern / path_util.c
index 73d6588..1a47a93 100644 (file)
@@ -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");
        }