[Bf-blender-cvs] [f65b369] master: Fix compilation error with strict compiler rules

Sergey Sharybin noreply at git.blender.org
Fri Jan 16 20:25:05 CET 2015


Commit: f65b369f16773601d932881649e89bd59a6d0e6b
Author: Sergey Sharybin
Date:   Sat Jan 17 00:22:46 2015 +0500
Branches: master
https://developer.blender.org/rBf65b369f16773601d932881649e89bd59a6d0e6b

Fix compilation error with strict compiler rules

===================================================================

M	source/blender/blenlib/intern/path_util.c

===================================================================

diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 793f4d5..3539893 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -438,8 +438,7 @@ void BLI_cleanup_file(const char *relabase, char *path)
  */
 void BLI_filename_make_safe(char *fname)
 {
-	char *invalid = "/\\?%*:|\"<>. ";
-	char *c;
+	const char *invalid = "/\\?%*:|\"<>. ";
 
 	for (; *fname && (fname = strpbrk(fname, invalid)); fname++) {
 		*fname = '_';




More information about the Bf-blender-cvs mailing list