Revision: 16901 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16901 Author: blendix Date: 2008-10-03 21:30:45 +0200 (Fri, 03 Oct 2008)
Log Message: ----------- Small fix for (harmless) use of uninitialized memory. Modified Paths: -------------- trunk/blender/source/blender/blenlib/intern/util.c Modified: trunk/blender/source/blender/blenlib/intern/util.c =================================================================== --- trunk/blender/source/blender/blenlib/intern/util.c 2008-10-03 18:03:30 UTC (rev 16900) +++ trunk/blender/source/blender/blenlib/intern/util.c 2008-10-03 19:30:45 UTC (rev 16901) @@ -1182,7 +1182,7 @@ * Add a / prefix and lowercase the driveletter, remove the : * C:\foo.JPG -> /c/foo.JPG */ - if (tmp[1] == ':' && isalpha(tmp[0]) && (tmp[2]=='\\' || tmp[2]=='/') ) { + if (isalpha(tmp[0]) && tmp[1] == ':' && (tmp[2]=='\\' || tmp[2]=='/') ) { tmp[1] = tolower(tmp[0]); /* replace ':' with driveletter */ tmp[0] = '/'; /* '\' the slash will be converted later */ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs