Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-10-03 23:30:45 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-10-03 23:30:45 +0400
commit128ee40d60db26ae17bf48a2c5555397b7ca49b7 (patch)
treebcf05bf43a5099170172b46899e446f40e704a34 /source/blender/blenlib
parent0eaccf881b4b23ebbf8f51ef679cab0c0e97094a (diff)
Small fix for (harmless) use of uninitialized memory.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index 442a629b12d..9aba38b9bc2 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -1182,7 +1182,7 @@ int BLI_convertstringcode(char *path, const char *basepath)
* 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 */